- Update the top level gradle.properties to a non-SNAPSHOT version.
- Update DbxSdkVersion.java to a non-SNAPSHOT version.
- Update the ChangeLog.md for the impending release.
- 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 tag -a vX.Y.Z -m "Version X.Y.Z"
(where X.Y.Z is the new version)- Run
git tag
to verify it
- Run
git push --follow-tags
- This should be pushed to your fork
- Create a PR with this commit and merge it.
- Update the top level gradle.properties to the next
-SNAPSHOT
version. - Update DbxSdkVersion.java to the next
-SNAPSHOT
version. git commit -am "Prepare next development version"
- Create a PR with this commit and merge it.
- This part below should be automated in CI, but if it fails, you will need to perform these steps manually
- Login to Sonatype to promote the artifacts https://central.sonatype.org/pages/releasing-the-deployment.html
- Click on Staging Repositories under Build Promotion
- Select all the Repositories that contain the content you want to release
- Click on Close and refresh until the Release button is active
- Click Release and submit
- Login to Sonatype to promote the artifacts https://central.sonatype.org/pages/releasing-the-deployment.html
- Create a GitHub release with the title and tag vX.Y.Z. Attach the sdk, -javadoc, and -sources .jar files from your
build/libs
directory. - Update gh-pages. Add or replace the files within
https://github.com/dropbox/dropbox-sdk-java/tree/gh-pages
with the files insidedropbox-sdk-java/build/docs/javadoc
. Also update the rootindex.html
to link to the new version documentation. This page will be shown here: https://dropbox.github.io/dropbox-sdk-java/ - Push these changes to GitHub.