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

jdaugherty pushed a commit to branch corrupt-jar-fixes
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit ace09b255373946d97105152e3ba839aaa93849a
Author: James Daugherty <jdaughe...@jdresources.net>
AuthorDate: Fri May 16 08:35:25 2025 -0400

    Add helper repo for debugging grails-bom locally in test apps
---
 build.gradle            |  6 ++++++
 grails-bom/build.gradle | 44 ++++++++++++++++++++++++++++++--------------
 2 files changed, 36 insertions(+), 14 deletions(-)

diff --git a/build.gradle b/build.gradle
index 8ded727cab..aa7b163fbf 100644
--- a/build.gradle
+++ b/build.gradle
@@ -46,6 +46,12 @@ ext {
 
 allprojects {
     repositories {
+        // workaround for 
https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/164
+        maven {
+            name = 'localGrailsBom'
+            url = file("$rootDir/grails-bom/build/repo")
+            content { includeModule 'org.apache.grails', 'grails-bom' }
+        }
         maven { url = 'https://repo.grails.org/grails/restricted' }
         // mavenLocal() // Keep, this will be uncommented and used by CI 
(groovy-joint-workflow)
         maven { url = 'https://repository.apache.org/content/groups/snapshots' 
}
diff --git a/grails-bom/build.gradle b/grails-bom/build.gradle
index 2d3fa5e756..df00b96b8f 100644
--- a/grails-bom/build.gradle
+++ b/grails-bom/build.gradle
@@ -1,20 +1,18 @@
 /*
- *  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
+ *  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
+ *      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.
+ *  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.
  */
 
 import org.apache.grails.gradle.tasks.bom.ExtractDependenciesTask
@@ -161,4 +159,22 @@ ext {
 
 apply {
     from 
rootProject.layout.projectDirectory.file('gradle/publish-config.gradle')
+}
+
+// Workaround for 
https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/164
+pluginManager.withPlugin('maven-publish') {
+    publishing {
+        repositories {
+            maven {
+                name = 'localBom'
+                url = layout.buildDirectory.dir('repo')
+            }
+        }
+    }
+
+//    project.afterEvaluate {
+//        tasks.named('assemble').configure {
+//            dependsOn 
tasks.named('publishMavenPublicationToLocalBomRepository')
+//        }
+//    }
 }
\ No newline at end of file

Reply via email to