Skip to content

Commit

Permalink
Merge pull request #231 from google/release_tools
Browse files Browse the repository at this point in the history
Add a deploy script which is a little less crazy to deal with for diverse modules than the maven-release-plugin
  • Loading branch information
eamonnmcmanus committed Apr 25, 2015
2 parents b93f7c5 + d754065 commit 60a1da1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/pom.xml
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.google.auto</groupId>
<artifactId>auto-parent</artifactId>
<version>2</version>
<version>3</version>
</parent>

<artifactId>auto-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion service/pom.xml
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.google.auto</groupId>
<artifactId>auto-parent</artifactId>
<version>2</version>
<version>3</version>
</parent>

<groupId>com.google.auto.service</groupId>
Expand Down
20 changes: 20 additions & 0 deletions util/mvn-deploy.sh
@@ -0,0 +1,20 @@
#!/bin/bash
if [ $# -lt 1 ]; then
echo "usage $0 <ssl-key> [<param> ...]"
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 -P sonatype-oss-release -Dgpg.keyname=${key} deploy
2 changes: 1 addition & 1 deletion value/pom.xml
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.google.auto</groupId>
<artifactId>auto-parent</artifactId>
<version>2</version>
<version>3</version>
</parent>

<groupId>com.google.auto.value</groupId>
Expand Down

0 comments on commit 60a1da1

Please sign in to comment.