git pull origin
- Change the version in
gradle.properties
to a non-snapshot version. - Update the
README.md
with the new version. git commit -am "Prepare for release X.Y.Z"
(where X.Y.Z is the new version)git push origin
./gradlew clean publishAllPublicationsToMavenCentralRepository --no-parallel
.- Close and release on Sonatype.
- Update the
gradle.properties
to the next SNAPSHOT version. git commit -am "Prepare next development version"
git push origin
- Release on GitHub:
- Create a new release here.
- Use
git shortlog <previous-release>..HEAD
as a base for the release notes. - Ensure you pick the "Prepare for release X.Y.Z" as the target commit.
git push origin && git fetch origin --tags