Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you're creating a new minor release, you will skip the above step and simply check out the release branchthe already existing branch for that version:

Code Block
languagebash
$ git checkout -b release-$SHORT_RELEASE_VERSION  

Now, create a release branch:

Code Block
languagebash
mvn release:branch \
    -DbranchName=${BRANCH_NAME} \
    -DupdateWorkingCopyVersions=false \
    -DupdateBranchVersions=true \
    -DreleaseVersion="${VERSION}-SNAPSHOT"

Check out the release branch.

Code Block
languagebash
git checkout ${BRANCH_NAME}

The rest of this guide assumes that commands are run in the root (or tools directory) of a repository on ${BRANCH_NAME} with on the branch of the release version with the above environment variables set.

...

Code Block
languagebash
RC_NUM="1"
TAG="release-${VERSION}-rc${RC_NUM}"

Now, create a release branch:

Code Block
languagebash
$ cd tools
tools $ tools $ OLD_VERSION=$CURRENT_SNAPSHOT_VERSION NEW_VERSION=$RELEASE_VERSION RELEASE_CANDIDATE=$RC_NUM releasing/create_release_branch.sh

Use Maven release plugin to build the release artifacts, as follows:

...