Skip to content

Commit

Permalink
chore(build): migrate to Develocity cache connector, simplify cache m…
Browse files Browse the repository at this point in the history
…anagement (#373)

- Change cache connector type
- Remove cache credentials
- Remove cache URL

Fixes #371
  • Loading branch information
puneetbehl authored Feb 28, 2024
1 parent 94cac50 commit 2f83ad5
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,24 @@ plugins {
gradleEnterprise {
server = 'https://ge.grails.org'
buildScan {
publishAlways()
publishAlwaysIf(System.getenv('CI') == 'true')
publishIfAuthenticated()
uploadInBackground = System.getenv("CI") == null
capture {
taskInputFiles = true
}
}

}

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')
}
}}
}
}

rootProject.name = 'testing-support'

Expand Down

0 comments on commit 2f83ad5

Please sign in to comment.