From 3ad90d78d0b3cffe8b225ea389c16e300d9949e4 Mon Sep 17 00:00:00 2001 From: Kevin Wittek Date: Tue, 9 Nov 2021 11:57:57 +0100 Subject: [PATCH] Add Gradle Enterprise (#4057) Co-authored-by: Richard North --- .github/workflows/ci-examples.yml | 1 + .github/workflows/ci.yml | 1 + settings.gradle | 12 +++++++++--- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-examples.yml b/.github/workflows/ci-examples.yml index a1f81f49bef..286eb41606f 100644 --- a/.github/workflows/ci-examples.yml +++ b/.github/workflows/ci-examples.yml @@ -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: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7336e0767e1..91666644dfa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/settings.gradle b/settings.gradle index 849a1ade06b..5a3966e3d25 100644 --- a/settings.gradle +++ b/settings.gradle @@ -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' @@ -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 } + }