Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (20 sloc) 623 Bytes
#!/bin/bash
if [[ ! $1 ]]; then
echo "Please provide artifact version"
else
VERSION=$1
TARGET=target/scala-2.9.1/sbt-0.11.2/xsbt-proguard-plugin_2.9.1-0.11.2-
POM=${TARGET}${VERSION}.pom
stty -echo
read -p "GPG passphrase: " passw; echo
stty echo
function mvn-gpg {
if [[ $2 ]]; then
CLASSIFIER=-Dclassifier=$2
fi
mvn gpg:sign-and-deploy-file -Dgpg.passphrase=$passw -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile=${POM} -Dfile=${TARGET}${VERSION}$1 $CLASSIFIER
}
mvn-gpg .jar
mvn-gpg -sources.jar sources
mvn-gpg -javadoc.jar javadoc
fi
Jump to Line
Something went wrong with that request. Please try again.