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 8c626898ef Allow forcing the staging repository description since
multiple, separate gradle projects will publish
8c626898ef is described below
commit 8c626898ef584232877a799895b260a5e22c5ef2
Author: James Daugherty <[email protected]>
AuthorDate: Wed May 28 15:23:16 2025 -0400
Allow forcing the staging repository description since multiple, separate
gradle projects will publish
---
.github/workflows/release.yml | 2 ++
grails-gradle/gradle/publish-root-config.gradle | 4 ++++
.../grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy | 4 ++++
3 files changed, 10 insertions(+)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index cbb7dc1e1d..16897d46a8 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -81,6 +81,7 @@ jobs:
NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
NEXUS_PUBLISH_URL: 'https://repository.apache.org/service/local/'
NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }}
+ NEXUS_PUBLISH_DESCRIPTION: 'grails-release:${{
steps.release_version.outputs.value }}'
SIGNING_KEY: ${{ secrets.GPG_KEY_ID }}
working-directory: 'grails-gradle'
run: >
@@ -92,6 +93,7 @@ jobs:
NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
NEXUS_PUBLISH_URL: 'https://repository.apache.org/service/local/'
NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.STAGING_PROFILE_ID }}
+ NEXUS_PUBLISH_DESCRIPTION: 'grails-release:${{
steps.release_version.outputs.value }}'
SIGNING_KEY: ${{ secrets.GPG_KEY_ID }}
working-directory: 'grails-gradle'
run: >
diff --git a/grails-gradle/gradle/publish-root-config.gradle
b/grails-gradle/gradle/publish-root-config.gradle
index 35adad10e4..5ccdc0be9d 100644
--- a/grails-gradle/gradle/publish-root-config.gradle
+++ b/grails-gradle/gradle/publish-root-config.gradle
@@ -28,6 +28,10 @@ if (isReleaseVersion) {
apply plugin: 'io.github.gradle-nexus.publish-plugin'
nexusPublishing {
+ String projectDescription = System.getenv('NEXUS_PUBLISH_DESCRIPTION')
+ if(projectDescription) {
+ description = "${projectDescription}"
+ }
repositories {
sonatype {
if(System.getenv('NEXUS_PUBLISH_URL')) {
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 bb8d2d2154..f3bea57af8 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
@@ -122,6 +122,7 @@ Note: if project properties are used, the properties must
be defined prior to ap
final String nexusPublishUsername =
project.findProperty('nexusPublishUsername') ?:
System.getenv('NEXUS_PUBLISH_USERNAME') ?: ''
final String nexusPublishPassword =
project.findProperty('nexusPublishPassword') ?:
System.getenv('NEXUS_PUBLISH_PASSWORD') ?: ''
final String nexusPublishStagingProfileId =
project.findProperty('nexusPublishStagingProfileId') ?:
System.getenv('NEXUS_PUBLISH_STAGING_PROFILE_ID') ?: ''
+ final String nexusPublishDescription =
project.findProperty('nexusPublishDescription') ?:
System.getenv('NEXUS_PUBLISH_DESCRIPTION') ?: ''
final ExtraPropertiesExtension extraPropertiesExtension =
project.extensions.findByType(ExtraPropertiesExtension)
@@ -225,6 +226,9 @@ Note: if project properties are used, the properties must
be defined prior to ap
if (!hasNexusPublishApplied) {
project.rootProject.nexusPublishing {
+ if(nexusPublishDescription) {
+ description = "${nexusPublishDescription}"
+ }
repositories {
sonatype {
if (nexusPublishUrl) {