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/06/26 15:01:57 UTC

(grails-core) branch 7.0.x updated: [skip tests] do not include stagingProfileId if not provided (maven central compatibility)

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-core.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new e436d39430 [skip tests] do not include stagingProfileId if not provided (maven central compatibility)
e436d39430 is described below

commit e436d39430c27948dbc5a7a871e08e87eecf9764
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Thu Jun 26 11:01:48 2025 -0400

    [skip tests] do not include stagingProfileId if not provided (maven central compatibility)
---
 .../grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy b/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy
index c8f0b1c871..f88cc2ca32 100644
--- a/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy
+++ b/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy
@@ -240,7 +240,9 @@ Note: if project properties are used, the properties must be defined prior to ap
                             }
                             username = nexusPublishUsername
                             password = nexusPublishPassword
-                            stagingProfileId = nexusPublishStagingProfileId
+                            if(nexusPublishStagingProfileId) {
+                                stagingProfileId = nexusPublishStagingProfileId
+                            }
                         }
                     }
                 }