Skip to content

Commit

Permalink
chore(build): Migrate to Develocity build cache connector (#536)
Browse files Browse the repository at this point in the history
To simplify cache management with  the [Develocity cache connector](https://docs.gradle.com/enterprise/gradle-plugin/#using_the_develocity_connector)
  • Loading branch information
puneetbehl authored Mar 7, 2024
1 parent 4155296 commit 598b6c6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gradleEnterprise {
buildScan {
publishAlwaysIf(System.getenv('CI') == 'true')
publishIfAuthenticated()
uploadInBackground = System.getenv('CI') == null
uploadInBackground = System.getenv("CI") == null
capture {
taskInputFiles = true
}
Expand All @@ -17,14 +17,10 @@ gradleEnterprise {

buildCache {
local { enabled = System.getenv('CI') != 'true' }
remote(HttpBuildCache) {
push = System.getenv('CI') == 'true'
remote(gradleEnterprise.buildCache) {
def isAuthenticated = System.getenv('GRADLE_ENTERPRISE_ACCESS_KEY')
push = System.getenv('CI') == 'true' && isAuthenticated
enabled = true
url = 'https://ge.grails.org/cache/'
credentials {
username = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER')
password = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY')
}
}
}

Expand Down

0 comments on commit 598b6c6

Please sign in to comment.