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

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

commit 19832006c31ec6d42a11a8d281c37ec6b5f6e57a
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Apr 19 06:43:27 2024 +1000

    swap to develocity plugin cont'd
---
 gradle/build-scans.gradle | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/gradle/build-scans.gradle b/gradle/build-scans.gradle
index 2b749d096c..b589c176be 100644
--- a/gradle/build-scans.gradle
+++ b/gradle/build-scans.gradle
@@ -20,15 +20,13 @@
 def env = System.getenv()
 boolean isCI = env.CI || env.TRAVIS || env.TEAMCITY_VERSION || 
env.GITHUB_ACTIONS
 
-gradleEnterprise {
+develocity {
     server = "https://ge.apache.org";
     allowUntrustedServer = false
 
     buildScan {
-        capture { taskInputFiles = true }
         uploadInBackground = !isCI
-        publishAlways()
-        publishIfAuthenticated()
+        publishing.onlyIf { println "it.authenticated=" + it.authenticated; 
it.authenticated }
         obfuscation {
             ipAddresses { addresses -> addresses.collect { address -> 
"0.0.0.0" } }
         }
@@ -40,7 +38,7 @@ buildCache {
         enabled = !isCI
     }
 
-    remote(gradleEnterprise.buildCache) {
+    remote(develocity.buildCache) {
         enabled = false
     }
 }

Reply via email to