Sha256: bfa1148592dd44a8e21867929b58cf1b2984b48a4ac748cf5c7f34ae961c2c3b

Contents?: true

Size: 824 Bytes

Versions: 10

Compression:

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

10 entries across 10 versions & 1 rubygems

Version Path
klogger-1.6.3 release.sh
klogger-1.6.2 release.sh
klogger-1.6.1 release.sh
klogger-1.6.0 release.sh
klogger-1.5.0 release.sh
klogger-1.4.0 release.sh
klogger-1.3.0 release.sh
klogger-1.2.0 release.sh
klogger-1.1.0 release.sh
klogger-1.0.2 release.sh