@@ -5,13 +5,11 @@ buildscript {
55 }
66 }
77 dependencies {
8- classpath " gradle.plugin.ch.myniva.gradle:s3-build-cache:0.10.0"
9- classpath " com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.6.1"
10- classpath " com.gradle:common-custom-user-data-gradle-plugin:1.2.1"
8+ classpath " com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.7.2"
9+ classpath " com.gradle:common-custom-user-data-gradle-plugin:1.6.1"
1110 }
1211}
1312
14- apply plugin : ' ch.myniva.s3-build-cache'
1513apply plugin : ' com.gradle.enterprise'
1614apply plugin : " com.gradle.common-custom-user-data-gradle-plugin"
1715
@@ -38,21 +36,20 @@ ext.isMasterBuild = false ||
3836 (System . getenv(" GITHUB_REF" ) == " refs/heads/master" ) ||
3937 (System . getenv(" BUILD_SOURCEBRANCHNAME" ) == " master" )
4038
39+ ext. isCI = System . getenv(" CI" ) != null
40+
4141buildCache {
4242 local {
43- enabled = ! isMasterBuild
43+ enabled = ! isCI
4444 }
45-
46- remote(ch.myniva.gradle.caching.s3.AwsS3BuildCache ) {
47- endpoint = ' fra1.digitaloceanspaces.com'
48- region = ' fra1'
49- bucket = ' testcontainers'
50- path = ' cache'
51- reducedRedundancy = false
52- push = isMasterBuild && ! System . getenv(" READ_ONLY_REMOTE_GRADLE_CACHE" )
53- headers = [
54- ' x-amz-acl' : ' public-read'
55- ]
45+ remote(HttpBuildCache ) {
46+ push = isCI
47+ enabled = true
48+ url = ' https://ge.testcontainers.org/cache/'
49+ credentials {
50+ username = ' ci'
51+ password = System . getenv(" GRADLE_ENTERPRISE_CACHE_PASSWORD" )
52+ }
5653 }
5754}
5855
@@ -61,7 +58,7 @@ gradleEnterprise {
6158 server = " https://ge.testcontainers.org/"
6259 publishAlways()
6360 publishIfAuthenticated()
64- uploadInBackground = System . getenv( " CI " ) == null
61+ uploadInBackground = ! isCI
6562 captureTaskInputFiles = true
6663 }
6764
0 commit comments