From 239aca8a572b99ce0248533e6cc21097fd58d5e4 Mon Sep 17 00:00:00 2001 From: Clay Johnson Date: Thu, 17 Sep 2026 08:59:02 -0500 Subject: [PATCH] Publish build scans to develocity.apache.org and update Develocity plugins The ASF migrated its Develocity instance from ge.apache.org to develocity.apache.org, and the Gradle Enterprise plugin was renamed to Develocity in 3.17. This migrates Samza to the new server and updates both plugins to current releases: com.gradle.enterprise 3.13.1 -> com.gradle.develocity 4.5.1 com.gradle.common-custom-user-data-gradle-plugin 1.10 -> 2.8.0 The DSL changes that accompany the rename: gradleEnterprise {} -> develocity {} publishAlways() + publishIfAuthenticated() -> publishing.onlyIf { it.authenticated } The explicit build scan capture configuration is dropped so that the default capture configuration applies, matching apache/groovy. A projectId of "samza" is set so builds are attributed to the Samza project on the shared ASF instance, matching apache/kafka and apache/groovy. The CI workflow exports DEVELOCITY_ACCESS_KEY from the DEVELOCITY_ACCESS_KEY secret. The plugin no longer reads GRADLE_ENTERPRISE_ACCESS_KEY, and DEVELOCITY_ACCESS_KEY is the secret name ASF INFRA provisions for develocity.apache.org. Remote build cache configuration is unchanged. Supersedes #1714 and #1718. --- .github/workflows/ci.yml | 2 +- settings.gradle | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 813d82b979..68ad5c824a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: matrix: java-version: [ 8.0.232 ] env: - GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} steps: - name: Cache Gradle packages uses: actions/cache@v2 diff --git a/settings.gradle b/settings.gradle index cce9f80900..fa0fbd4631 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,21 +17,20 @@ * under the License. */ plugins { - id 'com.gradle.enterprise' version '3.13.1' - id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.10' + id 'com.gradle.develocity' version '4.5.1' + id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.8.0' } def isGithubActions = System.getenv('GITHUB_ACTIONS') != null def isJenkins = System.getenv('JENKINS_URL') != null def isCI = isGithubActions || isJenkins -gradleEnterprise { - server = "https://ge.apache.org" +develocity { + server = "https://develocity.apache.org" + projectId = "samza" buildScan { - capture { taskInputFiles = true } uploadInBackground = !isCI - publishAlways() - publishIfAuthenticated() + publishing.onlyIf { it.authenticated } obfuscation { // This obfuscates the IP addresses of the build machine in the build scan. // Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues. @@ -45,7 +44,7 @@ buildCache { enabled = !isCI } - remote(gradleEnterprise.buildCache) { + remote(develocity.buildCache) { enabled = false } }