Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to gradle-nexus.publish-plugin #1495

Merged
merged 11 commits into from
Dec 20, 2022

Conversation

anniel-stripe
Copy link
Contributor

@anniel-stripe anniel-stripe commented Dec 19, 2022

Summary

Publishing to Maven is sometimes flaky, producing the warning

DEPRECATION WARNING. The staging repository ID is not provided. The fallback mode may impact release reliability and is deprecated. Please consult the project FAQ how it can be fixed.

This is a known issue with https://github.com/Codearte/gradle-nexus-staging-plugin , and the creator recommends using https://github.com/gradle-nexus/publish-plugin instead. This PR follows the migration steps in https://github.com/gradle-nexus/publish-plugin/wiki/Migration-from-gradle_nexus_staging-plugin---nexus_publish-plugin-duo.

Testing

Verified that publish action works when the command is ./gradlew publishToSonatype closeSonatypeStagingRepository. It finishes successfully and I manually inspected that the artifacts look good in Nexus UI, then dropped the staged repositories.

The command is now ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository, but I'm not sure how to test that part without actually releasing.

@anniel-stripe anniel-stripe changed the title Anniel gradle nexus publish plugin Move to gradle-nexus.publish-plugin Dec 19, 2022
@anniel-stripe anniel-stripe force-pushed the anniel-gradle-nexus-publish-plugin branch from a6d402e to 52c5167 Compare December 19, 2022 23:58
@anniel-stripe anniel-stripe force-pushed the anniel-gradle-nexus-publish-plugin branch from 52c5167 to ec2d860 Compare December 19, 2022 23:59
Copy link
Contributor

@pakrym-stripe pakrym-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@anniel-stripe anniel-stripe merged commit 3ce22a7 into master Dec 20, 2022
@anniel-stripe anniel-stripe deleted the anniel-gradle-nexus-publish-plugin branch December 20, 2022 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants