Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.19 KB

RELEASES.adoc

File metadata and controls

38 lines (24 loc) · 1.19 KB

Release Management for jmzTab-m

Read the docs

  1. Sonatype Guide

  2. Release deployment with Maven

  3. Prepare your PGP environment

Publishing a snapshot

./mvnw -Possrh-snapshot deploy

Publishing a release

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.