Skip to content

Commit

Permalink
Add Gradle Enterprise (#4057)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard North <[email protected]>
  • Loading branch information
kiview and rnorth authored Nov 9, 2021
1 parent 12b08b9 commit 3ad90d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GRADLE_ENTERPRISE_ACCESS_KEY: ge.testcontainers.org=${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}

jobs:
find_gradle_jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GRADLE_ENTERPRISE_ACCESS_KEY: ge.testcontainers.org=${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}

jobs:
thundra_test_initializer:
Expand Down
12 changes: 9 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ buildscript {
}
dependencies {
classpath "gradle.plugin.ch.myniva.gradle:s3-build-cache:0.10.0"
classpath "com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.2.1"
classpath "com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.6.1"
classpath "com.gradle:common-custom-user-data-gradle-plugin:1.2.1"
}
}

apply plugin: 'ch.myniva.s3-build-cache'
apply plugin: 'com.gradle.enterprise'
apply plugin: "com.gradle.common-custom-user-data-gradle-plugin"

rootProject.name = 'testcontainers-java'

Expand Down Expand Up @@ -56,7 +58,11 @@ buildCache {

gradleEnterprise {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
server = "https://ge.testcontainers.org/"
publishAlways()
publishIfAuthenticated()
uploadInBackground = System.getenv("CI") == null
captureTaskInputFiles = true
}

}

0 comments on commit 3ad90d7

Please sign in to comment.