From 0a55a61dd579fa07ceb4f06ef61f6639c76b0452 Mon Sep 17 00:00:00 2001 From: Jerome Prinet Date: Wed, 17 Jun 2026 14:52:57 +0200 Subject: [PATCH 1/2] build: migrate to OSS Community Develocity Instance Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci-windows.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/moby-latest.yml | 2 +- README.md | 2 +- settings.gradle | 11 +++++++---- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index 1f4ea75b27f..dbc1e78aa32 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -43,7 +43,7 @@ permissions: contents: read env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} jobs: main: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc128acb50c..a3b19e81823 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ permissions: env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} jobs: core: diff --git a/.github/workflows/moby-latest.yml b/.github/workflows/moby-latest.yml index 91058a25f6a..3c4cc949f11 100644 --- a/.github/workflows/moby-latest.yml +++ b/.github/workflows/moby-latest.yml @@ -13,7 +13,7 @@ on: - cron: '59 23 * * *' env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} jobs: test_docker: diff --git a/README.md b/README.md index 2cd203a0335..26f45f451e1 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=33816473&machine=standardLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=EastUs) -[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://ge.testcontainers.org/scans) +[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://community.develocity.cloud/scans?search.rootProjectNames=testcontainers-java) > Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container. diff --git a/settings.gradle b/settings.gradle index d59d26df2df..4fe10983f5b 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,8 +5,8 @@ buildscript { } } dependencies { - classpath "com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.19.2" - classpath "com.gradle:common-custom-user-data-gradle-plugin:2.5.0" + classpath "com.gradle:develocity-gradle-plugin:4.4.1" + classpath "com.gradle:common-custom-user-data-gradle-plugin:2.6.0" classpath "org.gradle.toolchains:foojay-resolver:0.8.0" } } @@ -45,13 +45,16 @@ buildCache { } develocity { + server = "https://community.develocity.cloud" + projectId = "testcontainers" buildScan { - server = "https://ge.testcontainers.org/" publishing.onlyIf { it.authenticated } uploadInBackground = !isCI capture.fileFingerprints = true + obfuscation { + ipAddresses { it.collect { "0.0.0.0" } } + } } - } From 2758d75535606ec0edea5ae58818e188647962f6 Mon Sep 17 00:00:00 2001 From: Jerome Prinet Date: Wed, 17 Jun 2026 14:58:30 +0200 Subject: [PATCH 2/2] build: migrate to OSS Community Develocity Instance Co-Authored-By: Claude Sonnet 4.6 --- settings.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.gradle b/settings.gradle index 4fe10983f5b..374dbbb00dc 100644 --- a/settings.gradle +++ b/settings.gradle @@ -39,8 +39,9 @@ buildCache { enabled = !isCI } remote(develocity.buildCache) { - push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("DEVELOCITY_ACCESS_KEY") enabled = true + // Check access key presence to avoid build cache errors on PR builds when access key is not present + push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("DEVELOCITY_ACCESS_KEY") != null } } @@ -52,7 +53,6 @@ develocity { it.authenticated } uploadInBackground = !isCI - capture.fileFingerprints = true obfuscation { ipAddresses { it.collect { "0.0.0.0" } } }