Sha256: 6ca2d8abe72545427f4289c1b38741f94ecef3a087a9ae238046a9ea1d4c6ea3

Contents?: true

Size: 829 Bytes

Versions: 30

Compression:

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

30 entries across 30 versions & 1 rubygems

Version Path
killbill-litle-1.9.7 release.sh
killbill-litle-1.9.6 release.sh
killbill-litle-1.9.5 release.sh
killbill-litle-1.9.4 release.sh
killbill-litle-1.9.3 release.sh
killbill-litle-1.9.2 release.sh
killbill-litle-1.9.1 release.sh
killbill-litle-1.9.0 release.sh
killbill-litle-1.8.2 release.sh
killbill-litle-1.8.1 release.sh
killbill-litle-1.8.0 release.sh
killbill-litle-1.7.1 release.sh
killbill-litle-1.7.0 release.sh
killbill-litle-1.6.0 release.sh
killbill-litle-1.5.1 release.sh
killbill-litle-1.5.0 release.sh
killbill-litle-1.4.0 release.sh
killbill-litle-1.3.0 release.sh
killbill-litle-1.2.1 release.sh
killbill-litle-1.2.0 release.sh