mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
19 lines
411 B
Groovy
19 lines
411 B
Groovy
buildCache {
|
|
local {
|
|
enabled = true
|
|
}
|
|
remote(HttpBuildCache) {
|
|
enabled = true
|
|
url = 'https://ge.spring.io/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
|
|
}
|
|
}
|
|
}
|
|
}
|