35 lines
892 B
Groovy
35 lines
892 B
Groovy
pluginManagement {
|
|
repositories {
|
|
gradlePluginPortal()
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
dependencyResolutionManagement {
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
}
|
|
rootProject.name = 'Seedvault'
|
|
include ':app'
|
|
include ':contactsbackup'
|
|
include ':storage:lib'
|
|
include ':storage:demo'
|
|
|
|
ext.isCiServer = System.getenv().containsKey("CIRRUS_CI")
|
|
ext.isMasterBranch = System.getenv().getOrDefault("CIRRUS_BRANCH", "").matches("android[0-9]+")
|
|
ext.buildCacheHost = System.getenv().getOrDefault("CIRRUS_HTTP_CACHE_HOST", "localhost:12321")
|
|
|
|
buildCache {
|
|
local {
|
|
enabled = !isCiServer
|
|
}
|
|
remote(HttpBuildCache) {
|
|
url = "http://${buildCacheHost}/"
|
|
enabled = isCiServer
|
|
push = isMasterBranch
|
|
}
|
|
}
|