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.propertiesto a non-SNAPSHOT version. E.g., if theVERSION_NAMEingradle.propertiesisX.Y.Z-SNAPSHOT, change it toX.Y.Z. Also change all mentions of the current version inREADME.mdto refer to versionX.Y.Zinstead. export NEWVER=X.Y.Z, whereX.Y.Zis 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.propertiesto the next SNAPSHOT version,X.Y.Z+1-SNAPSHOT. - Update
README-developers.mdto 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.