Skip to content
Les Hazlewood edited this page Feb 6, 2020 · 23 revisions

Welcome to the jjwt wiki!

Release Instructions:

  1. Ensure all @since JJWT_RELEASE_VERSION references are changed to the version you are about to release. Commit/push these changes.

  2. Ensure all references to a -SNAPSHOT version in README.md have been replaced with the version you are about to release. e.g. All usages of 0.11.0-SNAPSHOT should be changed to 0.11.0. Commit/push this change.

  3. Ensure the correct ~/.m2/settings.xml are enabled (not using a company private repo) and the sonatype-oss-release and stormpath-signature profiles are enabled.

  4. Run the release build:

    mvn clean
    mvn release:clean
    mvn release:prepare
    # Choose a version number.
    # Choose an SCM release tag.  This should be *just* the version number: 0.5, not jjwt-0.5
    # Choose the new development version.  If releasing 0.5, this would be 0.6-SNAPSHOT
    mvn release:perform
  5. In the branch with the new -SNAPSHOT version, change the root pom.xml jjwt.previousVersion property value to equal the version just released. Commit and push this change.

  6. Log in to the Sonatype OSS admin console

  7. On the menu on the left, click the Staging Repositories link. On the resulting list, find iojsonwebtoken-### (usually at the bottom of the list). Check the checkbox for that item.

  8. Click the Close button at the top of the list. Add in a quick note (e.g. 'Closing for the 0.5 release') and click Confirm.

  9. Wait a minute or so and click the Refresh button at the top of the list. The Release button should now be enabled. Click Release and enter in a quick note (e.g. 'Releasing 0.5'). Ensure the Automatically Drop option IS checked (you want this). Click Confirm.

  10. Logout.

That's it! The release should show up in Maven Central in 15 to 30 minutes.

Clone this wiki locally