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

jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-forge.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new b283aa7  #14787 - reduce RAO load
b283aa7 is described below

commit b283aa710c0d2594f54f80f59c5b1ed8871f3edd
Author: James Daugherty <[email protected]>
AuthorDate: Wed Jun 11 14:12:17 2025 -0400

    #14787 - reduce RAO load
---
 build.gradle                                          | 19 +++++++++++++++++++
 buildSrc/build.gradle                                 | 16 ++++++++++++----
 .../org.grails.forge.internal.base-module.gradle      |  4 ----
 grails-cli/build.gradle                               |  9 ---------
 grails-forge-analytics-postgres/build.gradle          |  4 ----
 grails-forge-core/build.gradle                        |  8 --------
 grails-forge-web-netty/build.gradle                   |  4 ----
 7 files changed, 31 insertions(+), 33 deletions(-)

diff --git a/build.gradle b/build.gradle
index 64fcead..6767f1b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -38,6 +38,25 @@ ext {
     buildDate = (buildInstant as Instant).atZone(ZoneOffset.UTC) // for 
reproducible builds
 }
 
+allprojects {
+    repositories {
+        mavenCentral()
+        maven { url = 'https://repo.grails.org/grails/restricted' }
+        maven {
+            url = 'https://repository.apache.org/content/groups/snapshots'
+            content {
+                includeVersionByRegex  'org[.]apache[.]grails.*', 
'.*','.*SNAPSHOT'
+            }
+        }
+        maven {
+            url = 'https://repository.apache.org/content/groups/staging'
+            content {
+                includeGroupByRegex 'org[.]apache[.]grails.*'
+            }
+        }
+    }
+}
+
 // buildSrc tests fail occasionally without running clean first
 tasks.named('build').configure {
     it.dependsOn(tasks.named('clean'))
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
index dc5d95c..6b91486 100644
--- a/buildSrc/build.gradle
+++ b/buildSrc/build.gradle
@@ -33,13 +33,21 @@ for (String key : properties.stringPropertyNames()) {
 
 repositories {
     mavenCentral()
-    gradlePluginPortal()
     maven { url = 'https://repo.grails.org/grails/restricted' }
-    maven { url = 'https://repository.apache.org/content/groups/staging' }
-    maven { url = 'https://repository.apache.org/content/groups/snapshots' }
+    maven {
+        url = 'https://repository.apache.org/content/groups/snapshots'
+        content {
+            includeVersionByRegex  'org[.]apache[.]grails.*', '.*','.*SNAPSHOT'
+        }
+    }
+    maven {
+        url = 'https://repository.apache.org/content/groups/staging'
+        content {
+            includeGroupByRegex 'org[.]apache[.]grails.*'
+        }
+    }
 }
 
-
 configurations.configureEach {
     exclude group: 'io.github.groovylang.groovydoc', module: 
'io.github.groovylang.groovydoc.gradle.plugin'
 }
diff --git 
a/buildSrc/src/main/groovy/org.grails.forge.internal.base-module.gradle 
b/buildSrc/src/main/groovy/org.grails.forge.internal.base-module.gradle
index 02d6639..cbedd06 100644
--- a/buildSrc/src/main/groovy/org.grails.forge.internal.base-module.gradle
+++ b/buildSrc/src/main/groovy/org.grails.forge.internal.base-module.gradle
@@ -27,10 +27,6 @@ plugins {
     id 'org.gradle.test-retry'
 }
 
-repositories {
-    mavenCentral()
-}
-
 version = project.projectVersion
 group = "org.apache.grails.forge"
 
diff --git a/grails-cli/build.gradle b/grails-cli/build.gradle
index 94c1aaa..ee6bbed 100644
--- a/grails-cli/build.gradle
+++ b/grails-cli/build.gradle
@@ -36,15 +36,6 @@ ext {
 version = projectVersion
 group = 'org.apache.grails'
 
-repositories {
-//    mavenLocal()
-    mavenCentral()
-    gradlePluginPortal()
-    maven { url = 'https://repo.grails.org/grails/restricted' }
-    maven { url = 'https://repository.apache.org/content/groups/staging' }
-    maven { url = 'https://repository.apache.org/content/groups/snapshots' }
-}
-
 dependencies {
     implementation platform("org.apache.grails:grails-bom:$grailsVersion")
 
diff --git a/grails-forge-analytics-postgres/build.gradle 
b/grails-forge-analytics-postgres/build.gradle
index 6fb2426..2209e3c 100644
--- a/grails-forge-analytics-postgres/build.gradle
+++ b/grails-forge-analytics-postgres/build.gradle
@@ -25,10 +25,6 @@ plugins {
 version = projectVersion
 group = 'org.apache.grails.forge'
 
-repositories {
-    mavenCentral()
-}
-
 dependencies {
 
     annotationProcessor 'io.micronaut:micronaut-graal'
diff --git a/grails-forge-core/build.gradle b/grails-forge-core/build.gradle
index 8c7501c..5461ef6 100644
--- a/grails-forge-core/build.gradle
+++ b/grails-forge-core/build.gradle
@@ -80,14 +80,6 @@ nohttp {
     source.exclude('**/pom.rocker.raw')
 }
 
-repositories {
-    // mavenLocal()
-    maven { url = 'https://repo.grails.org/grails/restricted' }
-    maven { url = 'https://repository.apache.org/content/groups/staging' }
-    maven { url = 'https://repository.apache.org/content/groups/snapshots' }
-    mavenCentral()
-}
-
 TaskProvider<Sync> copyGrailsWrapper = tasks.register('copyGrailsWrapper', 
Sync)
 copyGrailsWrapper.configure { Sync it ->
     it.inputs.files(configurations.grailsWrapper)
diff --git a/grails-forge-web-netty/build.gradle 
b/grails-forge-web-netty/build.gradle
index 89faf18..9428ee6 100644
--- a/grails-forge-web-netty/build.gradle
+++ b/grails-forge-web-netty/build.gradle
@@ -25,10 +25,6 @@ plugins {
 version = projectVersion
 group = 'org.apache.grails.forge'
 
-repositories {
-    mavenCentral()
-}
-
 dependencies {
 
     implementation project(':grails-forge-api')

Reply via email to