Skip to content

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

  1. Merge all changes into develop.
  2. git checkout -b release/<version>, e.g. git checkout -b release/1.0.0
  3. mvn -Dmanual-release -B release:prepare Will 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 of pom.xml and a release.properties file.
  4. git clean -f to remove the backup files
  5. git checkout v<version>. Checkout the tag
  6. mvn -B -e -DskipTests -Dmanual-release -Ddeploy -Dossrh clean deploy Build project and deploy to ossrh. Deployment to ossrh may take up to 20 minutes.
  7. Go to https://oss.sonatype.org/#stagingRepositories. Find zacoabsa-.... Release or drop the artefacts.
  8. Merge the release branch into develop and delete the release branch.

Clone this wiki locally