You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2025/04/16 04:52:38 UTC

(grails-core) 01/02: Adding missing repo connection information for the gradle-bom

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

jdaugherty pushed a commit to branch gradle-plugin-merge
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 39722474fc240031f3f3b26081b4b2313e0673d2
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Wed Apr 16 00:51:43 2025 -0400

    Adding missing repo connection information for the gradle-bom
---
 grails-gradle/bom/build.gradle | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/grails-gradle/bom/build.gradle b/grails-gradle/bom/build.gradle
index 20421bd97d..2c0e8dbd81 100644
--- a/grails-gradle/bom/build.gradle
+++ b/grails-gradle/bom/build.gradle
@@ -102,6 +102,18 @@ Closure determinePropertyName = { String groupId, String artifactId, String vers
 }
 
 publishing {
+    if (!isReleaseVersion) {
+        repositories {
+            maven {
+                credentials {
+                    username = System.getenv("MAVEN_PUBLISH_USERNAME") ?: ''
+                    password = System.getenv("MAVEN_PUBLISH_PASSWORD") ?: ''
+                }
+                url = System.getenv("MAVEN_PUBLISH_URL") ?: 'https://repository.apache.org/content/repositories/snapshots'
+            }
+        }
+    }
+
     publications {
         maven(MavenPublication) {
             from components.javaPlatform