This repository has been archived by the owner on Dec 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Releasing
Christian Kaltepoth edited this page Dec 19, 2017
·
1 revision
Before doing a release, you should run this to verify your setup and that the build works correctly:
mvn -Prelease -Dgpg.executable=gpg2 clean install
Create local release branch:
git checkout master
git fetch --all
git merge upstream/master
git checkout -b release
Update the version:
mvn versions:set versions:commit -DprocessAllModules=true -DnewVersion=1.0.0-m03
git commit -am "Updating version for 1.0.0-m03 release"
Initialize the gpg agent so you won't get asked for the password during the build:
echo "Foobar" | gpg2 --clear-sign
Do the release:
mvn -Prelease -Dgpg.executable=gpg2 clean deploy
Log into Sonatype OSS, then "close" and "release" the staging repository.
If everything worked fine, tag the revision:
git tag 1.0.0-m03
Update the version:
mvn versions:set versions:commit -DprocessAllModules=true -DnewVersion=1.0.0-m04-SNAPSHOT
git commit -am "Preparing for next development iteration"
Merge everything to master:
$ git checkout master
$ git merge release
$ git branch -d release
Then push your changes:
$ git push upstream
$ git push upstream --tags
Your are done!