...
Update CHANGES.txt in master to replace
Release X.Y.0
(unreleased changes)Release X.Y.0 - YYYY-MM-DD
. Commit:No Format git commit -m "Preparing for release X.Y.Z"
Create a branch for the release series:
No Format git checkout -b branch-X.Y.Z origin/master
- Add
A.B.C-SNAPSHOT (unreleased changes)
to CHANGES.txt in master. Bump the version number in the master branch:
No Format for file in $(find . -name pom.xml); do sed -i -e "s/X.Y.Z-SNAPSHOT/./gradlew setversion -Pnextversion="A.B.C-SNAPSHOT/" $file; done
- Commit these changes to the master and push.
Checkout the release branch
No Format git checkout branch-X.Y.Z
Update the release branch's version information: the version number in the release branch ends in
-SNAPSHOT
, but we need to remove this for the release. For example,0.8.0-SNAPSHOT
needs to be changed to0.8.0
.No Format for file in $(find . -name pom.xml); do sed -e "s/X.Y.X-SNAPSHOT/./gradlew setversion -Pnextversion="X.Y.Z/" $file; done
Commit these changes to the release branch and push
No Format git commit -m "Changing version to X.Y.Z"
...