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

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


The following commit(s) were added to refs/heads/6.0.x by this push:
     new c477f0e  Add develocity (#30)
c477f0e is described below

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

    Add develocity (#30)
    
    * build: add develocity
    
    * chore: cleanup
---
 settings.gradle | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/settings.gradle b/settings.gradle
index 468ffe1..29518fa 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,3 +1,30 @@
+plugins {
+    id 'com.gradle.develocity' version '4.0'
+    id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.2.1'
+}
+
+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-wrapper')
+        publishing.onlyIf { isAuthenticated }
+        uploadInBackground = isLocal
+    }
+}
+
+buildCache {
+    local { enabled = isLocal }
+    remote(develocity.buildCache) {
+        push = isCI && isAuthenticated
+        enabled = true
+    }
+}
+
 include 'starter'
 include 'wrapper'
-project(":wrapper").name = "grails7-wrapper"
+project(':wrapper').name = 'grails7-wrapper'

Reply via email to