You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ma...@apache.org on 2026/04/24 10:09:13 UTC
(grails-core) branch gradle-plugin-bootstrap created (now 0196bd2dd0)
This is an automated email from the ASF dual-hosted git repository.
matrei pushed a change to branch gradle-plugin-bootstrap
in repository https://gitbox.apache.org/repos/asf/grails-core.git
at 0196bd2dd0 build: bootstrap Gradle plugin repositories
This branch includes the following new commits:
new 0196bd2dd0 build: bootstrap Gradle plugin repositories
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(grails-core) 01/01: build: bootstrap Gradle plugin repositories
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
matrei pushed a commit to branch gradle-plugin-bootstrap
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 0196bd2dd07cea4d4efe9e6eeba522ddba7ee87b
Author: Mattias Reichel <ma...@gmail.com>
AuthorDate: Fri Apr 24 12:08:48 2026 +0200
build: bootstrap Gradle plugin repositories
Closes gh-15596
---
build-logic/settings.gradle | 35 ++--------------------
buildSrc/settings.gradle | 4 +++
gradle/plugin-repositories.gradle | 54 ++++++++++++++++++++++++++++++++++
grails-forge/buildSrc/settings.gradle | 4 +++
grails-forge/settings.gradle | 4 +++
grails-gradle/buildSrc/settings.gradle | 4 +++
grails-gradle/settings.gradle | 4 +++
settings.gradle | 4 +++
8 files changed, 80 insertions(+), 33 deletions(-)
diff --git a/build-logic/settings.gradle b/build-logic/settings.gradle
index 7300beab11..a3206f1d11 100644
--- a/build-logic/settings.gradle
+++ b/build-logic/settings.gradle
@@ -18,40 +18,9 @@
*/
pluginManagement {
+ apply from: file('../gradle/plugin-repositories.gradle')
repositories {
- if (System.getenv('GRAILS_INCLUDE_MAVEN_LOCAL')) {
- mavenLocal()
- }
- mavenCentral()
- gradlePluginPortal()
- maven {
- url = 'https://repository.apache.org/content/groups/snapshots'
- content {
- includeVersionByRegex('org[.]apache[.]grails[.]gradle.*', '.*', '.*-SNAPSHOT')
- }
- mavenContent {
- snapshotsOnly()
- }
- }
- maven {
- url = 'https://central.sonatype.com/repository/maven-snapshots'
- content {
- includeVersionByRegex('cloud[.]wondrify.*', '.*', '.*-SNAPSHOT')
- }
- mavenContent {
- snapshotsOnly()
- }
- }
- maven {
- url = 'https://repository.apache.org/content/groups/staging'
- content {
- includeModuleByRegex('org[.]apache[.]grails[.]gradle', 'grails-publish')
- includeModuleByRegex('org[.]apache[.]groovy', 'groovy.*')
- }
- mavenContent {
- releasesOnly()
- }
- }
+ configurePluginRepositories(delegate)
}
}
diff --git a/buildSrc/settings.gradle b/buildSrc/settings.gradle
index 2d6f2259de..3d31877243 100644
--- a/buildSrc/settings.gradle
+++ b/buildSrc/settings.gradle
@@ -20,6 +20,10 @@ pluginManagement {
includeBuild('../build-logic') {
name = 'build-logic-root'
}
+ apply from: file('../gradle/plugin-repositories.gradle')
+ repositories {
+ configurePluginRepositories(delegate)
+ }
}
plugins {
diff --git a/gradle/plugin-repositories.gradle b/gradle/plugin-repositories.gradle
new file mode 100644
index 0000000000..260a9c7a66
--- /dev/null
+++ b/gradle/plugin-repositories.gradle
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+ext.configurePluginRepositories = { RepositoryHandler repositories ->
+ if (System.getenv('GRAILS_INCLUDE_MAVEN_LOCAL')) {
+ repositories.mavenLocal()
+ }
+ repositories.mavenCentral()
+ repositories.gradlePluginPortal()
+ repositories.maven {
+ url = uri('https://repository.apache.org/content/groups/snapshots')
+ content {
+ includeGroup('org.apache.grails.gradle')
+ }
+ mavenContent {
+ snapshotsOnly()
+ }
+ }
+ repositories.maven {
+ url = uri('https://central.sonatype.com/repository/maven-snapshots')
+ content {
+ includeGroupByRegex('cloud[.]wondrify[.].*')
+ }
+ mavenContent {
+ snapshotsOnly()
+ }
+ }
+ repositories.maven {
+ url = uri('https://repository.apache.org/content/groups/staging')
+ content {
+ includeModule('org.apache.grails.gradle', 'grails-publish')
+ includeModuleByRegex('org[.]apache[.]groovy', 'groovy.*')
+ }
+ mavenContent {
+ releasesOnly()
+ }
+ }
+}
diff --git a/grails-forge/buildSrc/settings.gradle b/grails-forge/buildSrc/settings.gradle
index 2f3e6d9eee..312e2aeb1e 100644
--- a/grails-forge/buildSrc/settings.gradle
+++ b/grails-forge/buildSrc/settings.gradle
@@ -20,6 +20,10 @@ pluginManagement {
includeBuild('../../build-logic') {
name = 'build-logic-root'
}
+ apply from: file('../../gradle/plugin-repositories.gradle')
+ repositories {
+ configurePluginRepositories(delegate)
+ }
}
plugins {
diff --git a/grails-forge/settings.gradle b/grails-forge/settings.gradle
index 32ea13941e..78693d492f 100644
--- a/grails-forge/settings.gradle
+++ b/grails-forge/settings.gradle
@@ -25,6 +25,10 @@ pluginManagement {
includeBuild('../build-logic') {
name = 'build-logic-root'
}
+ apply from: file('../gradle/plugin-repositories.gradle')
+ repositories {
+ configurePluginRepositories(delegate)
+ }
}
plugins {
diff --git a/grails-gradle/buildSrc/settings.gradle b/grails-gradle/buildSrc/settings.gradle
index 4ee22b5bcf..0c42013680 100644
--- a/grails-gradle/buildSrc/settings.gradle
+++ b/grails-gradle/buildSrc/settings.gradle
@@ -20,6 +20,10 @@ pluginManagement {
includeBuild('../../build-logic') {
name = 'build-logic-root'
}
+ apply from: file('../../gradle/plugin-repositories.gradle')
+ repositories {
+ configurePluginRepositories(delegate)
+ }
}
plugins {
diff --git a/grails-gradle/settings.gradle b/grails-gradle/settings.gradle
index 7d0b8a0a1b..c3810f525c 100644
--- a/grails-gradle/settings.gradle
+++ b/grails-gradle/settings.gradle
@@ -22,6 +22,10 @@ pluginManagement {
includeBuild('../build-logic') {
name = 'build-logic-root'
}
+ apply from: file('../gradle/plugin-repositories.gradle')
+ repositories {
+ configurePluginRepositories(delegate)
+ }
}
plugins {
diff --git a/settings.gradle b/settings.gradle
index d7a13e9d9a..b61c9245b0 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -26,6 +26,10 @@ pluginManagement {
includeBuild('./build-logic') {
name = 'build-logic-root'
}
+ apply from: file('gradle/plugin-repositories.gradle')
+ repositories {
+ configurePluginRepositories(delegate)
+ }
}
plugins {