From 263119c7712ff61582971d157404c8c8e89ce81e Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Wed, 19 May 2021 11:45:54 +0200 Subject: [PATCH] Port over changes from 4.1 to the finish_release.sh script --- scripts/finish_release.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/finish_release.sh b/scripts/finish_release.sh index 8df13c3ea9..f436f3e138 100755 --- a/scripts/finish_release.sh +++ b/scripts/finish_release.sh @@ -15,13 +15,20 @@ fi BRANCH=$(git branch --show-current) +if git tag | grep -q "$2" ; then + echo "Tag $2 already existed locally, deleting it" + git tag -d "$2" +fi + git fetch git checkout "$2" export JAVA_HOME="$JAVA8_HOME" -./mvnw -Psonatype-oss-release -pl resolver-dns-native-macos,transport-native-unix-common,transport-native-kqueue 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 -Psonatype-oss-release -am -pl resolver-dns-native-macos,transport-native-unix-common,transport-native-kqueue 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 -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 -DstagingProgressTimeoutMinutes=10 + git checkout "$BRANCH"