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 e2271b9 commit 1d0f32f
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 13 deletions.
13 changes: 10 additions & 3 deletions examples/groovy/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// Part 1
// The content here is simply for the CICD testing of this example
// It is not relevant for understanding the example
plugins {
id "com.github.burrunan.s3-build-cache" version "1.5"
}

rootProject.name = 'groovy'
// ignore this: used for testing examples during releases
// Ensures the example tests the plugin being built
includeBuild('../../')

// Build cache configuration
ext.isCiServer = System.getenv().containsKey("CI")
buildCache {
local {
Expand All @@ -20,4 +23,8 @@ buildCache {
push = isCiServer
lookupDefaultAwsCredentials = true
}
}
}

// Part 2
// This is the only relevant section for the example
rootProject.name = 'groovy'
31 changes: 29 additions & 2 deletions examples/java-external-stage/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
rootProject.name = 'java-external-stage'
// ignore this: used for testing examples during releases
// Part 1
// The content here is simply for the CICD testing of this example
// It is not relevant for understanding the example
plugins {
id "com.github.burrunan.s3-build-cache" version "1.5"
}

// Ensures the example tests the plugin being built
includeBuild('../../')

// Build cache configuration
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
}
}

// Part 2
// This is the only relevant section for the example
rootProject.name = 'java-external-stage'
29 changes: 29 additions & 0 deletions examples/java-manual/settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
// Part 1
// The content here is simply for the CICD testing of this example
// It is not relevant for understanding the example
plugins {
id "com.github.burrunan.s3-build-cache" version "1.5"
}

// Ensures the example tests the plugin being built
includeBuild('../../')

// Build cache configuration
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
}
}

// Part 2
// This is the only relevant section for the example
rootProject.name = 'java-manual'
31 changes: 29 additions & 2 deletions examples/java-testing/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
rootProject.name = 'java-testing'
// ignore this: used for testing examples during releases
// Part 1
// The content here is simply for the CICD testing of this example
// It is not relevant for understanding the example
plugins {
id "com.github.burrunan.s3-build-cache" version "1.5"
}

// Ensures the example tests the plugin being built
includeBuild('../../')

// Build cache configuration
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
}
}

// Part 2
// This is the only relevant section for the example
rootProject.name = 'java-testing'
31 changes: 29 additions & 2 deletions examples/java/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
rootProject.name = 'java'
// ignore this: used for testing examples during releases
// Part 1
// The content here is simply for the CICD testing of this example
// It is not relevant for understanding the example
plugins {
id "com.github.burrunan.s3-build-cache" version "1.5"
}

// Ensures the example tests the plugin being built
includeBuild('../../')

// Build cache configuration
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
}
}

// Part 2
// This is the only relevant section for the example
rootProject.name = 'java'
31 changes: 29 additions & 2 deletions examples/kotlin/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
rootProject.name = 'kotlin'
// ignore this: used for testing examples during releases
// Part 1
// The content here is simply for the CICD testing of this example
// It is not relevant for understanding the example
plugins {
id "com.github.burrunan.s3-build-cache" version "1.5"
}

// Ensures the example tests the plugin being built
includeBuild('../../')

// Build cache configuration
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
}
}

// Part 2
// This is the only relevant section for the example
rootProject.name = 'kotlin'
31 changes: 29 additions & 2 deletions examples/scala/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
rootProject.name = 'scala'
// ignore this: used for testing examples during releases
// Part 1
// The content here is simply for the CICD testing of this example
// It is not relevant for understanding the example
plugins {
id "com.github.burrunan.s3-build-cache" version "1.5"
}

// Ensures the example tests the plugin being built
includeBuild('../../')

// Build cache configuration
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
}
}

// Part 2
// This is the only relevant section for the example
rootProject.name = 'scala'

0 comments on commit 1d0f32f

Please sign in to comment.