From fe041e8e438f7e3f2e6f94de036fba06b123e3d7 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Thu, 18 Feb 2021 08:38:42 +0100 Subject: [PATCH] Close and release the staging repository at the end Motivation: We can just close and release the staging repository at the end and so remove the extra manual steps Modification: Execute extra goals for close and release Result: Less manual actions needed for release --- scripts/finish_release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/finish_release.sh b/scripts/finish_release.sh index 8dbad97771..e42b8f1b30 100755 --- a/scripts/finish_release.sh +++ b/scripts/finish_release.sh @@ -29,4 +29,6 @@ export JAVA_HOME="$JAVA8_HOME" ./mvnw -Psonatype-oss-release,full,uber-staging -pl all,tarball clean package gpg:sign org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DstagingRepositoryId="$1" -DnexusUrl=https://oss.sonatype.org -DserverId=sonatype-nexus-staging -DskipTests=true +./mvnw org.sonatype.plugins:nexus-staging-maven-plugin:rc-close org.sonatype.plugins:nexus-staging-maven-plugin:rc-release -DstagingRepositoryId="$1" -DnexusUrl=https://oss.sonatype.org -DserverId=sonatype-nexus-staging -DskipTests=true + git checkout "$BRANCH"