Gradle Enterprise exp5

This commit is contained in:
Steve Ebersole 2021-11-30 07:17:47 -06:00
parent 572171e27f
commit 95e98c8804
1 changed files with 10 additions and 2 deletions

View File

@ -33,9 +33,17 @@ if ( !JavaVersion.current().java11Compatible ) {
buildCache {
// duplicated from `gradle-enterprise.gradle` but not sure how to share it...
def isCi = System.getenv("CI") != null || System.getProperty("CI") != null
def populateRemote = System.getenv("POPULATE_REMOTE") != null || System.getProperty("POPULATE_REMOTE") != null
local { enabled = !isCi }
remote(HttpBuildCache) { enabled = false }
local {
// do not use local build cache for CI jobs, period!
enabled = !isCi
}
remote(HttpBuildCache) {
enabled = true
push = populateRemote
url = 'https://ge.hibernate.org/cache/'
}
}
gradle.ext.baselineJavaVersion = JavaLanguageVersion.of( 11 )