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

matrei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/grails-static-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c3a09a7af Update develocity settings (#347)
5c3a09a7af is described below

commit 5c3a09a7afcc575a83b30a628b60aaae92216fa1
Author: Mattias Reichel <[email protected]>
AuthorDate: Thu Apr 10 13:36:02 2025 +0200

    Update develocity settings (#347)
    
    * build: update develocity settings
    
    * chore: cleanup
---
 settings.gradle | 36 +++++++++++++++---------------------
 1 file changed, 15 insertions(+), 21 deletions(-)

diff --git a/settings.gradle b/settings.gradle
index 918e83fec0..f863c5445f 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,34 +1,28 @@
 plugins {
-    id "com.gradle.enterprise" version '3.16.2'
-    id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.13'
+    id 'com.gradle.develocity' version '4.0'
+    id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.2.1'
 }
 
-gradleEnterprise {
+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 {
-        publishAlwaysIf(System.getenv('CI') == 'true')
-        publishIfAuthenticated()
-        uploadInBackground = System.getenv("CI") == null
-        capture {
-            taskInputFiles = true
-        }
+        tag('grails')
+        tag('grails-static-website')
+        publishing.onlyIf { isAuthenticated }
+        uploadInBackground = isLocal
     }
-
 }
 
 buildCache {
-    local { enabled = System.getenv('CI') != 'true' }
-    remote(HttpBuildCache) {
-        def isAuthenticated = 
System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER') && 
System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY')
-        push = System.getenv('CI') == 'true' && isAuthenticated
+    local { enabled = isLocal }
+    remote(develocity.buildCache) {
+        push = isCI && isAuthenticated
         enabled = true
-        url = 'https://ge.grails.org/cache/'
-        credentials {
-            username = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER')
-            password = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY')
-        }
     }
 }
 
-
-rootProject.name = "static-website"
+rootProject.name = 'static-website'

Reply via email to