spring-framework/gradle/build-cache-settings.gradle

21 lines
495 B
Groovy
Raw Normal View History

buildCache {
2019-10-25 21:26:20 +08:00
local {
enabled = true
}
if (System.getenv('GRADLE_ENTERPRISE_URL')) {
remote(HttpBuildCache) {
enabled = true
url = "${System.getenv('GRADLE_ENTERPRISE_URL')}/cache/"
def cacheUsername = System.getenv('GRADLE_ENTERPRISE_CACHE_USERNAME')
def cachePassword = System.getenv('GRADLE_ENTERPRISE_CACHE_PASSWORD')
if (cacheUsername && cachePassword) {
push = true
credentials {
username = cacheUsername
password = cachePassword
}
}
}
2019-10-25 21:26:20 +08:00
}
}