Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.22 KB

RELEASE.md

File metadata and controls

36 lines (25 loc) · 1.22 KB

Howto Release

Perform a release

Release are uploaded to a staging repository of Maven Central:

# perform release (use `git reset --hard origin/master` and delete tags to retry)
mvn release:clean
mvn release:prepare
mvn release:perform

Then visit oss.sonatype.org in order to deploy the release.

It takes up to 2 hours until the release appears at Maven Central. The public repository can be found here.

Best practice: Remove an existing release from Git

Sometime something goes wrong during a release. Here are some steps to restore the previous state.

Given a <version> (e.g. 0.9.2), a non-published release can be removed like this:

# get actual master
git clone https://github.com/vavr-io/vavr-beanvalidation2.git ; vavr-beanvalidation2

# delete existing tag (local and remote)
git tag -d v<version>
git push --delete origin v<version>

# revert development version
mvn versions:set -DnewVersion=<version>-SNAPSHOT
git commit -a -m "Reverted to <version>-SNAPSHOT"
git push origin master ; git pull