- Change the version in
build.gradle
to a non-SNAPSHOT version (e.g.,0.2-SNAPSHOT
->0.2
) - Update the
CHANGELOG.md
for the impending release. - Update the
README.md
with the new version. - Copy
api/current.txt
toapi/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.gradle
to 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.