This is an automated email from the ASF dual-hosted git repository.
matrei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/grails-forge-ui.git
The following commit(s) were added to refs/heads/main by this push:
new a8de3d2 build: add develocity (#50)
a8de3d2 is described below
commit a8de3d2594fb868bc67a9de7807617e7df133162
Author: Mattias Reichel <[email protected]>
AuthorDate: Thu Apr 10 22:19:42 2025 +0200
build: add develocity (#50)
---
settings.gradle | 34 ++++++++++++++++++++++++++--------
1 file changed, 26 insertions(+), 8 deletions(-)
diff --git a/settings.gradle b/settings.gradle
index f1b083b..f1c06f4 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,10 +1,28 @@
-/*
- * This file was generated by the Gradle 'init' task.
- *
- * The settings file is used to specify which projects to include in your
build.
- *
- * Detailed information about configuring a multi-project build in Gradle can
be found
- * in the user manual at
https://docs.gradle.org/7.6/userguide/multi_project_builds.html
- */
+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-forge-ui')
+ publishing.onlyIf { isAuthenticated }
+ uploadInBackground = isLocal
+ }
+}
+
+buildCache {
+ local { enabled = isLocal }
+ remote(develocity.buildCache) {
+ push = isCI && isAuthenticated
+ enabled = true
+ }
+}
rootProject.name = 'grails-forge-ui'