Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a deploy script which is a little less crazy to deal with for diverse modules than the maven-release-plugin #231

Merged
merged 3 commits into from Apr 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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