-
Notifications
You must be signed in to change notification settings - Fork 86
Releasing
Lincoln Baxter, III edited this page Oct 4, 2023
·
6 revisions
mvnw release:clean release:prepare -DskipTests=true -Darguments="-DskipTests=true -Dmaven.test.skip=true" -DdevelopmentVersion=X.Y.Z-SNAPSHOT -DreleaseVersion=X.Y.Z.Final -Dtag=X.Y.Z.Final
mvnw release:perform -DskipTests=true -Darguments="-DskipTests=true -Dmaven.test.skip=true" -Prelease-sign-artifacts,release
If you belong to the (very small) group of people with a localized Git version, do this to work around MRELEASE-812:
$ export LANG=C
Prepare the GPG agent and use what to keep the GPG session alive
$ gpg2 --clearsign -o /dev/null /etc/issue
$ watch "echo PING | gpg2 --clearsign"
$ git checkout master
$ git fetch --all
$ git merge origin/master
$ git merge upstream/master
$ git checkout -b release
$ mvn clean release:clean
$ mvn release:prepare -Dgpg.executable=gpg2 -Darguments="-DskipTests"
What is the release version for "rewrite-parent"? <---- Release version
What is SCM release tag or label for "rewrite-parent"? <---- Just confirm the tag name
What is the new development version for "rewrite-parent"? <---- Next SNAPSHOT version
$ mvn release:perform -Dgpg.executable=gpg2 -Darguments="-DskipTests"
- Close repository
- Check that everything looks good
- Release!
$ git checkout 2.0.0.Alpha4
$ mvn clean install javadoc:aggregate
Result:
target/site/apidocs
distribution/target/*.zip
$ git checkout master
$ git merge release
$ git branch -d release
$ git push upstream
$ git push upstream --tags