Skip to content

Commit 34ab495

Browse files
svc-excavator-botbulldozer[bot]
authored andcommitted
Excavator: Speed up CI using the Gradle Build Cache (#11)
1 parent a27a691 commit 34ab495

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎gradle.properties‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
com.palantir.baseline-versions.disable = true
22
org.gradle.parallel=true
3+
org.gradle.caching = true

‎settings.gradle‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,14 @@ project(':google-java-format').projectDir = "$rootDir/core" as File
66
// The https://github.com/JetBrains/gradle-intellij-plugin tries to download the whole intellij distribution in
77
// afterEvaluate. We don't want to let it do this.
88
//include ':idea_plugin'
9+
10+
boolean isCiServer = System.getenv().containsKey('CI')
11+
buildCache {
12+
local {
13+
enabled = !isCiServer
14+
}
15+
remote(HttpBuildCache) {
16+
url = 'https://***REMOVED***
17+
push = isCiServer
18+
}
19+
}

0 commit comments

Comments
 (0)