We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca7b80a commit 5db7667Copy full SHA for 5db7667
.ci/build-cache.gradle
@@ -0,0 +1,18 @@
1
+if (System.getenv('GRADLE_BUILD_CACHE_URL')) {
2
+ gradle.settingsEvaluated { settings ->
3
+ settings.buildCache {
4
+ remote(HttpBuildCache) {
5
+ url = System.getenv('GRADLE_BUILD_CACHE_URL')
6
+ push = Boolean.valueOf(System.getenv('GRADLE_BUILD_CACHE_PUSH') ?: 'false')
7
+ if (System.getenv('GRADLE_BUILD_CACHE_USERNAME') && System.getenv('GRADLE_BUILD_CACHE_PASSWORD')) {
8
+ credentials {
9
+ username = System.getenv('GRADLE_BUILD_CACHE_USERNAME')
10
+ password = System.getenv('GRADLE_BUILD_CACHE_PASSWORD')
11
+ }
12
13
14
15
16
+} else {
17
+ throw new GradleException("You must supply a value for GRADLE_BUILD_CACHE_URL environment variable when applying build-cache.gradle init script")
18
+}
0 commit comments