Skip to content

Commit

Permalink
chore(build): Migrate to Develocity build cache connector (#834)
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 committed Mar 9, 2024
1 parent 24f9e5d commit 0af8816
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@ gradleEnterprise {
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')
}
}}
}
}


// Core
Expand Down

0 comments on commit 0af8816

Please sign in to comment.