mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
16 lines
496 B
Groovy
16 lines
496 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) {
|
||
|
url = gradleBuildCacheURL
|
||
|
push = isCiServer
|
||
|
}
|
||
|
}
|