You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2025/01/15 12:38:43 UTC

(lucene) branch main updated: Publish build scans to develocity.apache.org (#14140)

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new 34a732f1935 Publish build scans to develocity.apache.org (#14140)
34a732f1935 is described below

commit 34a732f1935e75f0b41c0262a7fcf3a8e4d16565
Author: Clay Johnson <cj...@gradle.com>
AuthorDate: Wed Jan 15 06:38:37 2025 -0600

    Publish build scans to develocity.apache.org (#14140)
    
    * Publish build scans to develocity.apache.org
    
    * Update Develocity plugin versions
    
    * Use `DEVELOCITY_ACCESS_KEY` to authenticate to `develocity.apache.org`
---
 .github/workflows/run-checks-all.yml                    |  2 +-
 .github/workflows/run-checks-gradle-upgrade.yml         |  2 +-
 .github/workflows/run-checks-mod-analysis-common.yml    |  2 +-
 .github/workflows/run-checks-mod-distribution.tests.yml |  2 +-
 README.md                                               |  2 +-
 gradle/ge.gradle                                        | 12 ++++++------
 settings.gradle                                         |  4 ++--
 7 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/run-checks-all.yml b/.github/workflows/run-checks-all.yml
index 18dd308e9a7..7242a57dbeb 100644
--- a/.github/workflows/run-checks-all.yml
+++ b/.github/workflows/run-checks-all.yml
@@ -13,7 +13,7 @@ on:
       - 'branch_10x'
 
 env:
-  GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+  DEVELOCITY_ACCESS_KEY: ${{ DEVELOCITY_ACCESS_KEY }}
 
 # We split the workflow into two parallel jobs for efficiency:
 # one is running all validation checks without tests,
diff --git a/.github/workflows/run-checks-gradle-upgrade.yml b/.github/workflows/run-checks-gradle-upgrade.yml
index 07b7210cf4e..0eefce64a23 100644
--- a/.github/workflows/run-checks-gradle-upgrade.yml
+++ b/.github/workflows/run-checks-gradle-upgrade.yml
@@ -20,7 +20,7 @@ on:
       - 'gradle/wrapper/**'
 
 env:
-  GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+  DEVELOCITY_ACCESS_KEY: ${{ DEVELOCITY_ACCESS_KEY }}
 
 jobs:
   gradleSanityCheck:
diff --git a/.github/workflows/run-checks-mod-analysis-common.yml b/.github/workflows/run-checks-mod-analysis-common.yml
index a208039a99f..8b9cde59ef4 100644
--- a/.github/workflows/run-checks-mod-analysis-common.yml
+++ b/.github/workflows/run-checks-mod-analysis-common.yml
@@ -20,7 +20,7 @@ on:
       - 'lucene/analysis/common/**'
 
 env:
-  GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+  DEVELOCITY_ACCESS_KEY: ${{ DEVELOCITY_ACCESS_KEY }}
 
 jobs:
   test:
diff --git a/.github/workflows/run-checks-mod-distribution.tests.yml b/.github/workflows/run-checks-mod-distribution.tests.yml
index e3af5812c80..646c048bdd0 100644
--- a/.github/workflows/run-checks-mod-distribution.tests.yml
+++ b/.github/workflows/run-checks-mod-distribution.tests.yml
@@ -14,7 +14,7 @@ on:
       - 'branch_10x'
 
 env:
-  GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+  DEVELOCITY_ACCESS_KEY: ${{ DEVELOCITY_ACCESS_KEY }}
 
 jobs:
   test:
diff --git a/README.md b/README.md
index c613a16986e..c2c963ef50e 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ Apache Lucene is a high-performance, full-featured text search engine library
 written in Java.
 
 [![Build Status](https://ci-builds.apache.org/job/Lucene/job/Lucene-Artifacts-main/badge/icon?subject=Lucene)](https://ci-builds.apache.org/job/Lucene/job/Lucene-Artifacts-main/)
-[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://ge.apache.org/scans?search.buildToolType=gradle&search.rootProjectNames=lucene-root)
+[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://develocity.apache.org/scans?search.buildToolType=gradle&search.rootProjectNames=lucene-root)
 
 ## Online Documentation
 
diff --git a/gradle/ge.gradle b/gradle/ge.gradle
index f6bba24f23f..c4677859e33 100644
--- a/gradle/ge.gradle
+++ b/gradle/ge.gradle
@@ -17,13 +17,13 @@
 
 def isCIBuild = System.getenv().keySet().find { it ==~ /(?i)((JENKINS|HUDSON)(_\w+)?|CI)/ } != null
 
-gradleEnterprise {
-    server = "https://ge.apache.org"
+develocity {
+    server = "https://develocity.apache.org"
+    projectId = "lucene"
+
     buildScan {
-        capture { taskInputFiles = true }
         uploadInBackground = !isCIBuild
-        publishAlways()
-        publishIfAuthenticated()
+        publishing.onlyIf { it.isAuthenticated() }
         obfuscation {
             ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
         }
@@ -35,7 +35,7 @@ buildCache {
         enabled = !isCIBuild
     }
 
-    remote(gradleEnterprise.buildCache) {
+    remote(develocity.buildCache) {
         enabled = false
     }
 }
diff --git a/settings.gradle b/settings.gradle
index f4ee13243ca..8543bab1619 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -26,8 +26,8 @@ pluginManagement {
 
 plugins {
     id "org.gradle.toolchains.foojay-resolver-convention" version "0.8.0"
-    id 'com.gradle.enterprise' version '3.15.1'
-    id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.11.3'
+    id 'com.gradle.develocity' version '3.18.2'
+    id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
 }
 
 dependencyResolutionManagement {