mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
17 lines
525 B
Groovy
17 lines
525 B
Groovy
// Gradle Build Cache configuration recommendation: https://docs.gradle.org/current/userguide/build_cache.html
|
|
ext {
|
|
isCiServer = System.getenv().containsKey("CORDA_CI")
|
|
gradleBuildCacheURL = System.getenv().containsKey("GRADLE_BUILD_CACHE_URL") ? System.getenv().get("GRADLE_BUILD_CACHE_URL") : 'http://localhost:5071/cache/'
|
|
}
|
|
|
|
buildCache {
|
|
local {
|
|
enabled = !isCiServer
|
|
}
|
|
remote(HttpBuildCache) {
|
|
enabled = isCiServer
|
|
url = gradleBuildCacheURL
|
|
push = isCiServer
|
|
}
|
|
}
|