Versions Compared

Key

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

...

Code Block
git checkout $BRANCH_NAME
git clean -xdf

mvn release:prepare \
   -DautoVersionSubmodules=true  \
   -DreleaseVersion=$RELEASE_VERSION \
   -Dtag=$TAG  \
   -DdevelopmentVersion=$RELEASE_DEVELOPMENT_VERSION \
   -Darguments='-DskipTests=true -Pfull-build,apache-release' -Pfull-build,apache-release

see details in  TODO IN THIS GUIDE!!!! (use "preparationGoals" of maven release plugin)

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyZOOKEEPER-3635
Also update the version number in zookeeper-client/zookeeper-client-c/configure.aczookeeper-client/zookeeper-client-c/CMakeLists.txt, and zookeeper-client/zookeeper-client-c/include/zookeeper_version.h to the next logical SNAPSHOT version (e.g. X.Y.Z to X.Y.(Z+1)-SNAPSHOT)

The command above perform the following activities:

  • removes -SNAPSHOT in all of the pom.xml files
  • build the project (even the C client and contrib packages)
  • ensures the correct version in C client files (configure.ac, CMakelink.txt, TODO zookeeper_version.h)
  • created a signed tag
  • umps



Code Block
cd zookeeper-client/zookeeper-client-c
sed -i s/$BRANCH_VERSION/$RELEASE_VERSION/g configure.ac
sed -i s/$BRANCH_VERSION/$RELEASE_VERSION/g CMakeLists.txt
cd ../..
grep -r $NEWVERSION *

...