Sha256: b8219a4cc28a6b8a292215ccd63be7d763448145402a2d2b1b810ea66f9d4ead
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
set -e if [ "GNU" != "$(tar --help | grep GNU | head -1 | awk '{print $1}')" ]; then echo "Unable to release: make sure to use GNU tar" exit 1 fi if $(ruby -e'require "java"'); then # Good echo "Detected JRuby" else echo "Unable to release: make sure to use JRuby" exit 1 fi VERSION=`grep -E '<version>([0-9]+\.[0-9]+\.[0-9]+)</version>' pom.xml | sed 's/[\t \n]*<version>\(.*\)<\/version>[\t \n]*/\1/'` if [ "$VERSION" != "$(cat $PWD/VERSION)" ]; then echo "Unable to release: make sure the versions in pom.xml and VERSION match" exit 1 fi echo "Cleaning up" rake killbill:clean ; rake build echo "Pushing the gem to Rubygems" rake release echo "Building artifact" rake killbill:package ARTIFACT="$PWD/pkg/killbill-zendesk-$VERSION.tar.gz" echo "Pushing $ARTIFACT to Maven Central" mvn gpg:sign-and-deploy-file \ -DgroupId=org.kill-bill.billing.plugin.ruby \ -DartifactId=zendesk-plugin \ -Dversion=$VERSION \ -Dpackaging=tar.gz \ -DrepositoryId=ossrh-releases \ -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \ -Dfile=$ARTIFACT \ -DpomFile=pom.xml
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
killbill-zendesk-3.0.0 | release.sh |
killbill-zendesk-2.0.0 | release.sh |
killbill-zendesk-1.3.0 | release.sh |