Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 0fc66df

Browse files
committed
chore(build): Migrate to Develocity Build Cache Connector
To simplify cache management with the [Develocity cache connector](https://docs.gradle.com/enterprise/gradle-plugin/#using_the_develocity_connector)
1 parent 34bbbdd commit 0fc66df

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

settings.gradle

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,17 @@ gradleEnterprise {
1313
taskInputFiles = true
1414
}
1515
}
16+
1617
}
1718

1819
buildCache {
1920
local { enabled = System.getenv('CI') != 'true' }
20-
remote(HttpBuildCache) {
21-
push = System.getenv('CI') == 'true'
21+
remote(gradleEnterprise.buildCache) {
22+
def isAuthenticated = System.getenv('GRADLE_ENTERPRISE_ACCESS_KEY')
23+
push = System.getenv('CI') == 'true' && isAuthenticated
2224
enabled = true
23-
url = 'https://ge.grails.org/cache/'
24-
credentials {
25-
username = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER')
26-
password = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY')
27-
}
28-
}}
29-
25+
}
26+
}
3027

3128
// core
3229
include "grails-datastore-gorm-bson"

0 commit comments

Comments
 (0)