-
Notifications
You must be signed in to change notification settings - Fork 5
How to release a new version
Kevin Wallimann edited this page Sep 7, 2021
·
7 revisions
Manually releasing a new version will work like this
- Merge all changes into develop.
-
git checkout -b release/<version>, e.g.git checkout -b release/1.0.0 -
mvn -Dmanual-release -B release:prepareWill push branch and tag to github. The version will be inferred from the current SNAPSHOT version. If you want to manually specify a version, use-DreleaseVersion=1.0.0. This step produces a backup file ofpom.xmland arelease.propertiesfile. -
git clean -fto remove the backup files -
git checkout v<version>. Checkout the tag -
mvn -B -e -DskipTests -Dmanual-release -Ddeploy -Dossrh clean deployBuild project and deploy to ossrh. Deployment to ossrh may take up to 20 minutes. - Go to https://oss.sonatype.org/#stagingRepositories. Find zacoabsa-.... Release or drop the artefacts.
- Merge the release branch into develop and delete the release branch.