- Change the version in
build.gradleto a non-SNAPSHOT version (e.g.,0.2-SNAPSHOT->0.2) - Update the
CHANGELOG.mdfor the impending release. - Update the
README.mdwith the new version. - Copy
api/current.txttoapi/X.Y.Z.txt. git commit -am "Prepare for release X.Y.Z."(where X.Y.Z is the new version)./gradlew clean assemble- Upload the ZIP in
build/distributions/to Google's maven repository. git tag -a X.Y.X -m "Version X.Y.Z"(where X.Y.Z is the new version)- Update the
build.gradleto the next SNAPSHOT version. git commit -am "Prepare next development version."git push && git push --tags
If step 5 or 6 fails, fix the problem, commit, and start again at step 5.