disable local build-cache for CI jobs

This commit is contained in:
Steve Ebersole 2021-09-08 13:30:48 -05:00
parent 304af1c3a6
commit 6866a1e77b
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ if ( !JavaVersion.current().java8Compatible ) {
}
buildCache {
local { enabled = true }
// duplicated from `gradle-enterprise.gradle` but not sure how to share it...
def isCi = System.getenv("CI") != null || System.getProperty("CI") != null
local { enabled = !isCi }
remote(HttpBuildCache) { enabled = false }
}