-
Prepare your PGP environment
Create a release branch:
git branch <RELEASE_VERSION> git checkout <RELEASE_VERSION>
Set the release version, commit and tag:
./mvnw versions:set -DnewVersion<RELEASE_VERSION> git add **/pom.xml pom.xml git commit -m "Release <RELEASE_VERSION>" git tag release-<RELEASE_VERSION> git push --tags
Build the release and deploy to OSSRH staging
./mvnw -Possrh-release deploy
Copy the ID of the staging repository, something like deisasmztab-<NUMBER>. Again, follow the Guides from above. If everything looks good, publish the release to central (subsitute the stagingRepositoryId with the proper one):
./mvnw -Possrh-release nexus-staging:release -DstagingRepositoryId=deisasmztab-<NUMBER>
Finally, create a release from the tag at GitHub.