From 99393648bba2e2d48630c66015dd5b1ac860598b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Cs=C3=A1kv=C3=A1ri?= Date: Mon, 7 Jan 2019 20:53:44 +0100 Subject: [PATCH] Update release_guide.md --- docs/release_guide.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/release_guide.md b/docs/release_guide.md index 88f47d7..064266a 100644 --- a/docs/release_guide.md +++ b/docs/release_guide.md @@ -12,14 +12,18 @@ # Release - Bump version. -- Run `mvn clean install` in the root of the project. -- For `scott/scott` and `scott/scott-maven-plugin` do the following: (with the appropriate version numbers): - - `mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=nexus-releases -DpomFile=pom.xml -Dfile=target/scott-1.0.0.jar` - - `mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=nexus-releases -DpomFile=pom.xml -Dfile=target/scott-1.0.0-sources.jar -Dclassifier=sources` - - `mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=nexus-releases -DpomFile=pom.xml -Dfile=target/scott-1.0.0-javadoc.jar -Dclassifier=javadoc` -- For `scott/scott-gradle-plugin`: +- Build everything: + - Run `mvn clean install` in the root of the project. + - Run`./gradlew build` on the `scott-gradle-plugin`. +- Deploy Maven Artifacts: + - For `scott/scott` and `scott/scott-maven-plugin` do the following: (with the appropriate version numbers): + - `mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=nexus-releases -DpomFile=pom.xml -Dfile=target/scott-1.0.0.jar` + - `mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=nexus-releases -DpomFile=pom.xml -Dfile=target/scott-1.0.0-sources.jar -Dclassifier=sources` + - `mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=nexus-releases -DpomFile=pom.xml -Dfile=target/scott-1.0.0-javadoc.jar -Dclassifier=javadoc` + - Sign in to [https://oss.sonatype.org](https://oss.sonatype.org). Find the new repo under "Staging repositories". Make sure that the contents are OK, then hit Close, then Release. +- Deploy `scott/scott-gradle-plugin`: - `./gradlew publishPlugins` -- Sign in to [https://oss.sonatype.org](https://oss.sonatype.org). Find the new repo under "Staging repositories". Make sure that the contents are OK, then hit Close, then Release. + The Gradle plugin will be released after manual approval. The Maven artifacts will be available in Maven Central after a few hours.