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

matrei pushed a commit to branch 5.0.x
in repository https://gitbox.apache.org/repos/asf/grails-geb.git


The following commit(s) were added to refs/heads/5.0.x by this push:
     new fa506ea  build: update develocity auth (#163)
fa506ea is described below

commit fa506eae68e7b6a15cf59fd650ec77ba30088335
Author: Mattias Reichel <[email protected]>
AuthorDate: Mon Apr 14 17:57:08 2025 +0200

    build: update develocity auth (#163)
---
 settings.gradle                          | 5 ++---
 spock-container-test-app/settings.gradle | 9 ++++-----
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/settings.gradle b/settings.gradle
index 71935e2..0de61ce 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -5,14 +5,13 @@ plugins {
 
 def isCI = System.getenv().containsKey('CI')
 def isLocal = !isCI
-def isAuthenticated = 
System.getenv().containsKey('GRAILS_DEVELOCITY_ACCESS_KEY')
 
 develocity {
     server = 'https://ge.grails.org'
     buildScan {
         tag('grails')
         tag('grails-geb')
-        publishing.onlyIf { isAuthenticated }
+        publishing.onlyIf { it.authenticated }
         uploadInBackground = isLocal
     }
 }
@@ -20,7 +19,7 @@ develocity {
 buildCache {
     local { enabled = isLocal }
     remote(develocity.buildCache) {
-        push = isCI && isAuthenticated
+        push = isCI
         enabled = true
     }
 }
diff --git a/spock-container-test-app/settings.gradle 
b/spock-container-test-app/settings.gradle
index 50d9392..0c9d595 100644
--- a/spock-container-test-app/settings.gradle
+++ b/spock-container-test-app/settings.gradle
@@ -1,18 +1,17 @@
 plugins {
-    id 'com.gradle.develocity' version '3.18.2'
-    id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
+    id 'com.gradle.develocity' version '4.0'
+    id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.2.1'
 }
 
 def isCI = System.getenv('CI') != null
 def isLocal = !isCI
-def isAuthenticated = System.getenv('GRAILS_DEVELOCITY_ACCESS_KEY') != null
 
 develocity {
     server = 'https://ge.grails.org'
     buildScan {
         tag('grails')
         tag('grails/geb')
-        publishing.onlyIf { isAuthenticated }
+        publishing.onlyIf { it.authenticated }
         uploadInBackground = isLocal
     }
 }
@@ -20,7 +19,7 @@ develocity {
 buildCache {
     local { enabled = isLocal }
     remote(develocity.buildCache) {
-        push = isCI && isAuthenticated
+        push = isCI
         enabled = true
     }
 }

Reply via email to