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

wenjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git


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

commit a7a6ba21744d2223d28d2806d49d8ec98765f15e
Author: Clay Johnson <[email protected]>
AuthorDate: Tue Jan 21 05:11:03 2025 -0600

    Publish build scans to develocity.apache.org (#5165)
    
    * Publish build scans to develocity.apache.org
    * Update Develocity plugin versions
    * Add a projectId
    * Use `DEVELOCITY_ACCESS_KEY` to authenticate to `develocity.apache.org`
---
 .github/workflows/ci.yml            | 6 +++---
 .github/workflows/code-scanning.yml | 2 +-
 settings.gradle                     | 7 ++++---
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d63c38110..7c792b7d3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -58,7 +58,7 @@ jobs:
       - name: GenerateGrammarSource
         run: ./gradlew clean generateGrammarSource --parallel --daemon --scan
         env:
-          DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+          DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
 
       - name: Set up JDK ${{ matrix.java }}
         uses: actions/setup-java@v4
@@ -72,12 +72,12 @@ jobs:
           ./gradlew clean build dist jacocoTestReport --parallel --daemon 
--scan
           -x spotlessJava -x generateGrammarSource -x generateDistLicense -x 
checkDeniedLicense
         env:
-          DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+          DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
 
       - name: Install plugin
         run: ./gradlew installPlugin --scan
         env:
-          DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+          DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
 
       - name: Upload coverage report to codecov.io
         run: bash <(curl -s https://codecov.io/bash) || echo 'Failed to upload 
coverage report!'
diff --git a/.github/workflows/code-scanning.yml 
b/.github/workflows/code-scanning.yml
index 5476923b0..dbda7eab6 100644
--- a/.github/workflows/code-scanning.yml
+++ b/.github/workflows/code-scanning.yml
@@ -68,7 +68,7 @@ jobs:
         if: matrix.language == 'java'
         run: ./gradlew clean assemble compileTestJava --parallel --daemon 
--scan
         env:
-          DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+          DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
 
       - name: Perform CodeQL analysis
         uses: github/codeql-action/analyze@v3
diff --git a/settings.gradle b/settings.gradle
index 070d4f02d..b013a5792 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -16,17 +16,18 @@
  */
 
 plugins {
-    id 'com.gradle.develocity' version '3.18.1'
+    id 'com.gradle.develocity' version '3.18.2'
     id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
 }
 
 def isCiServer = System.getenv().containsKey("CI")
 
 develocity {
-    server = "https://ge.apache.org";
+    server = "https://develocity.apache.org";
+    projectId = "eventmesh"
     buildScan {
         uploadInBackground = !isCiServer
-        publishing.onlyIf { false }
+        publishing.onlyIf { it.isAuthenticated() }
         obfuscation {
             ipAddresses { addresses -> addresses.collect { address -> 
"0.0.0.0"} }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to