Skip to content

Commit 525ab50

Browse files
Migrate to Develocity build cache connector (#180)
Co-authored-by: Puneet Behl <behlp@unityfoundation.io>
1 parent 00a4b15 commit 525ab50

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/gradle.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
uses: gradle/gradle-build-action@v3
2626
env:
2727
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
28-
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
29-
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
3028
with:
3129
arguments: build -Dgeb.env=chromeHeadless
3230
- name: Publish to repo.grails.org

settings.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,10 @@ gradleEnterprise {
1717

1818
buildCache {
1919
local { enabled = System.getenv('CI') != 'true' }
20-
remote(HttpBuildCache) {
21-
push = System.getenv('CI') == 'true'
20+
remote(gradleEnterprise.buildCache) {
21+
def isAuthenticated = System.getenv('GRADLE_ENTERPRISE_ACCESS_KEY')
22+
push = System.getenv('CI') == 'true' && isAuthenticated
2223
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-
}
2824
}}
2925

3026
rootProject.name = 'cache'

0 commit comments

Comments
 (0)