Note that these steps require pushing directly to the master branch on GitHub. Be sure that other developers are not pushing changes concurrently.
- Change the version in
gradle.properties
to a non-SNAPSHOT version. E.g., if theVERSION_NAME
ingradle.properties
isX.Y.Z-SNAPSHOT
, change it toX.Y.Z
. Also change all mentions of the current version inREADME.md
to refer to versionX.Y.Z
instead. export NEWVER=X.Y.Z
, whereX.Y.Z
is the new version from step 1.git commit -am "Prepare for release $NEWVER."
git tag -a v"$NEWVER" -m "Version $NEWVER"
./gradlew --no-parallel clean uploadArchives
- Update the
gradle.properties
to the next SNAPSHOT version,X.Y.Z+1-SNAPSHOT
. - Update
README-developers.md
to refer toX.Y.Z+1-SNAPSHOT
. git commit -am "Prepare next development version."
git push && git push --tags
- Visit Sonatype Nexus and promote the artifact.