The following should be done from a release branch i.e. release-1.x
:
- Bump version number from X.Y.Z-SNAPSHOT in
pom.xml
filesmvn versions:set -DnewVersion=1.0.0
- Bump version number from X.Y.Z-SNAPSHOT in
docs/antora.yml
- Create a version tag with a leading
v
in a format likevX.Y.Z
- Trigger release deployment with pushing the version tag to GitHub with
git push --tags
- Merge release branch into master
- Bump version number to X.Y.Z-SNAPSHOT in
pom.xml
files - Bump version number to X.Y.Z-SNAPSHOT in
docs/antora.yml
- Push the release branch
- Merge release branch into
develop
git merge release-1.x -s ours
- Update Yum repositories in documentation to use release instead of snapshot artifacts
mvn -DautoVersionSubmodules=true [email protected] -Prelease release:clean release:prepare
mvn -DautoVersionSubmodules=true -Darguments=-Dgpg.keyname="[email protected]" -Dgpg.keyname="[email protected]" -Prelease install deploy
mvn -DautoVersionSubmodules=true -Darguments=-Dgpg.keyname="[email protected]" -Dgpg.keyname="[email protected]" -Prelease release:perform
# note: the stagingRepositoryId comes from the output of the release:perform step
mvn -DautoVersionSubmodules=true -Darguments=-Dgpg.keyname="[email protected]" -Dgpg.keyname="[email protected]" -Prelease nexus-staging:release -DstagingRepositoryId=orgopennms-XXXX