Please follow the steps in each one of the following sections to complete a release.
- Create new branch
release/X.Y.Z
(where X.Y.Z is the new version) - Update the top level gradle.properties 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)- Create a PR titled "Release vX.Y.Z"
- Merge the PR after checks pass. This will trigger our GitHub Action to publish to Maven Central.
- This part below should be automated in CI, but if publishing 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
- Pull the latest code
git fetch origin
that was just merged with the stable version. - Check out the commit that landed
git checkout COMMIT_HASH
- Tag the commit with
git tag -a vX.Y.Z -m "Version X.Y.Z"
(where X.Y.Z is the new version) - Push the tag
git push origin vX.Y.Z
- Checkout the latest code from
main
into a new branch. - Update the top level gradle.properties to the next
-SNAPSHOT
version. git commit -am "Prepare next development version"
- Create a PR with this commit and merge it.
- Create a GitHub release with the title from the
vX.Y.Z
tag. Attach the sdk, -javadoc, and -sources .jar files that were published to Maven Central. - Checkout the
gh-pages
branch. Add or replace the files withinhttps://github.com/dropbox/dropbox-sdk-java/tree/gh-pages
with the files inside the javadoc jar (You can unzip the javadoc jar after downloading from Maven Central). 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 the
gh-pages
branch on GitHub.