Skip to content

Commit

Permalink
Testing build cache for examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartbryson committed Jul 5, 2023
1 parent e6d003e commit e2271b9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/groovy/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
plugins {
id "com.github.burrunan.s3-build-cache" version "1.5"
}

rootProject.name = 'groovy'
// ignore this: used for testing examples during releases
includeBuild('../../')

ext.isCiServer = System.getenv().containsKey("CI")
buildCache {
local {
// Local build cache is dangerous as it might produce inconsistent results
// in case developer modifies files while the build is running
enabled = false
}
remote(com.github.burrunan.s3cache.AwsS3BuildCache) {
region = 'us-east-1'
bucket = 'nio-gradle-cache'
prefix = "${rootProject.name}/"
push = isCiServer
lookupDefaultAwsCredentials = true
}
}

0 comments on commit e2271b9

Please sign in to comment.