Sha256: d9f3442b2444e572699a5f0921e2def29f36b0630a3933c11c771c6e4c5dd161

Contents?: true

Size: 853 Bytes

Versions: 7

Compression:

Stored size: 853 Bytes

Contents

set -e

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-notification-test-$VERSION.tar.gz"
echo "Pushing $ARTIFACT to Maven Central"
mvn gpg:sign-and-deploy-file \
    -DgroupId=com.ning.killbill.ruby \
    -DartifactId=notification-test-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

7 entries across 7 versions & 1 rubygems

Version Path
killbill-notification-test-1.7.3 release.sh
killbill-notification-test-1.7.2 release.sh
killbill-notification-test-1.7.1 release.sh
killbill-notification-test-1.7.0 release.sh
killbill-notification-test-1.6.0 release.sh
killbill-notification-test-1.5.0 release.sh
killbill-notification-test-1.4.0 release.sh