From 6b215108c8f5173dc2484c1577438bd2e9281d4e Mon Sep 17 00:00:00 2001 From: Les Hazlewood <121180+lhazlewood@users.noreply.github.com> Date: Mon, 25 Apr 2022 16:58:01 -0400 Subject: [PATCH] Updating release steps for accuracy based on current build edits --- Home.md | 53 ++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 5 deletions(-) diff --git a/Home.md b/Home.md index d66cb12..4fb12bc 100644 --- a/Home.md +++ b/Home.md @@ -6,11 +6,54 @@ Welcome to the jjwt wiki! 1. Ensure all version references (dependency declarations, etc) in `README.md` have been replaced with the version you are about to release. Commit/push this change. -1. 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. +1. Ensure the correct `~/.m2/settings.xml` are enabled (not using a company private repo) and you have **both** the `ossrh` _profile_ + **and** `ossrh` _server_ enabled as follows: + ```xml + + + + + ossrh + + + gpg + YOUR_GPG_KEY_ID + YOUR_GPG_KEY_PASSPHRASE + + + + + + + + ossrh + + YOUR_OSSRH_USERNAME + YOUR_OSSRH_PASSWORD + + + -1. Ensure you have the Zulu JDK 7 installation here: https://www.azul.com/downloads/?version=java-7-lts&os=macos&architecture=x86-64-bit&package=jdk + + ``` -1. Ensure `java -version` equals this Zulu JDK 7 +1. Ensure you have the [Zulu JDK 7](https://www.azul.com/downloads/?version=java-7-lts&package=jdk) installed. + +1. Ensure `java -version` equals this Zulu JDK 7, e.g. the output looks something like this: + ```bash + openjdk version "1.7.0_342" + OpenJDK Runtime Environment (Zulu 7.54.0.13-CA-macosx) (build 1.7.0_342-b01) + OpenJDK 64-Bit Server VM (Zulu 7.54.0.13-CA-macosx) (build 24.342-b01, mixed mode) + ``` 1. Ensure MAVEN_OPTS is set properly: ```bash @@ -26,12 +69,12 @@ Welcome to the jjwt wiki! # 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 -Possrh + mvn release:perform ``` 1. In the `master` branch (and in the `Maj.min.x` branch if you are cutting a patch release), change the root pom.xml `jjwt.previousVersion` property value to equal the version just released. Commit and push these changes. -1. Log in to the [Sonatype OSS admin console](https://oss.sonatype.org) +1. Log in to the [Sonatype OSSRH admin console](https://oss.sonatype.org) 1. 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.