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/08/13 01:34:13 UTC

(incubator-grails-gradle-publish) branch 7.0.x updated: fix: switch pomCustomization to use xml as the delegate instead of pom

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/incubator-grails-gradle-publish.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new 47c4cea  fix: switch pomCustomization to use xml as the delegate instead of pom
47c4cea is described below

commit 47c4cea4ad7a0b38a790ae28b6f00fd767971269
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Tue Aug 12 21:34:03 2025 -0400

    fix: switch pomCustomization to use xml as the delegate instead of pom
---
 .../org/apache/grails/gradle/publish/GrailsPublishGradlePlugin.groovy   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/src/main/groovy/org/apache/grails/gradle/publish/GrailsPublishGradlePlugin.groovy b/plugin/src/main/groovy/org/apache/grails/gradle/publish/GrailsPublishGradlePlugin.groovy
index ce1feb6..fac1e0f 100644
--- a/plugin/src/main/groovy/org/apache/grails/gradle/publish/GrailsPublishGradlePlugin.groovy
+++ b/plugin/src/main/groovy/org/apache/grails/gradle/publish/GrailsPublishGradlePlugin.groovy
@@ -393,7 +393,7 @@ Note: if project properties are used, the properties must be defined prior to ap
                                 }
 
                                 if (gpe.pomCustomization) {
-                                    gpe.pomCustomization.delegate = publication
+                                    gpe.pomCustomization.delegate = xml
                                     gpe.pomCustomization.resolveStrategy = Closure.DELEGATE_FIRST
                                     gpe.pomCustomization.call()
                                 }