From f813b66fbb4f7e8f49a93d6ebfd0626b11d7de13 Mon Sep 17 00:00:00 2001 From: Christian Edward Gruber Date: Fri, 24 Apr 2015 22:58:40 -0700 Subject: [PATCH 1/3] Add a release script which can be used in a more targetted way than the maven release plugin. --- util/mvn-deploy.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 util/mvn-deploy.sh diff --git a/util/mvn-deploy.sh b/util/mvn-deploy.sh new file mode 100755 index 0000000000..959c4f7df7 --- /dev/null +++ b/util/mvn-deploy.sh @@ -0,0 +1,20 @@ +#!/bin/bash +if [ $# -lt 1 ]; then + echo "usage $0 [ ...]" + exit 1; +fi +key=${1} +shift +params=${@} + +#validate key +keystatus=$(gpg --list-keys | grep ${key} | awk '{print $1}') +if [ "${keystatus}" != "pub" ]; then + echo "Could not find public key with label ${key}" + echo -n "Available keys from: " + gpg --list-keys | grep --invert-match '^sub' + + exit 1 +fi + +mvn ${params} clean site:jar -DperformRelease=true -Dgpg.skip=false -Dgpg.keyname=${key} deploy From 4786e3bb0ae2981c24fa4af34bd3029f820aa28a Mon Sep 17 00:00:00 2001 From: Christian Edward Gruber Date: Fri, 24 Apr 2015 23:33:24 -0700 Subject: [PATCH 2/3] Move to a sonatype profile for release --- util/mvn-deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/mvn-deploy.sh b/util/mvn-deploy.sh index 959c4f7df7..e7160ebeca 100755 --- a/util/mvn-deploy.sh +++ b/util/mvn-deploy.sh @@ -17,4 +17,4 @@ if [ "${keystatus}" != "pub" ]; then exit 1 fi -mvn ${params} clean site:jar -DperformRelease=true -Dgpg.skip=false -Dgpg.keyname=${key} deploy +mvn ${params} clean site:jar -P sonatype-oss-release -Dgpg.keyname=${key} deploy From d7540659ab2f61e91ea9e7d8043084086aa2cabf Mon Sep 17 00:00:00 2001 From: Christian Edward Gruber Date: Fri, 24 Apr 2015 23:36:03 -0700 Subject: [PATCH 3/3] Bump projects to use the new parent pom, and (therefore) the sonatype release profile. --- common/pom.xml | 2 +- service/pom.xml | 2 +- value/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/pom.xml b/common/pom.xml index c3c19dd540..22ce84edce 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -21,7 +21,7 @@ com.google.auto auto-parent - 2 + 3 auto-common diff --git a/service/pom.xml b/service/pom.xml index eff378298b..6531bd17c6 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -21,7 +21,7 @@ com.google.auto auto-parent - 2 + 3 com.google.auto.service diff --git a/value/pom.xml b/value/pom.xml index a320cdb67c..fed7ad110c 100644 --- a/value/pom.xml +++ b/value/pom.xml @@ -21,7 +21,7 @@ com.google.auto auto-parent - 2 + 3 com.google.auto.value