Skip to content
George Gastaldi edited this page Mar 6, 2015 · 2 revisions

Welcome to the furnace wiki!

Releasing Furnace

#!/bin/sh
 : ${1:?"Must specify release version. Ex: 2.0.1.Final"}
 : ${2:?"Must specify next development version. Ex: 2.0.2-SNAPSHOT"}

if [ -f "$HOME/.profile" ]
then
   . $HOME/.profile
fi

function release_furnace {
        REL=$1
        DEV=$2
        REPO=$3
        REPODIR=$4
        git clone $REPO $REPODIR
        cd $REPODIR
        echo Releasing \"$REPO\" - $1 \(Next dev version is $2\)
        mvn release:prepare release:perform \
                -DdevelopmentVersion=$DEV \
                -DreleaseVersion=$REL \
                -Dtag=$REL \
                -Darguments=-DskipTests \
        cd ..
}

WORK_DIR=`mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir'`
echo "Working in temp directory $WORK_DIR"
cd $WORK_DIR
release_furnace $1 $2 [email protected]:forge/furnace.git furnace
release_furnace $1 $2 [email protected]:forge/furnace-simple.git furnace-simple
release_furnace $1 $2 [email protected]:forge/furnace-cdi.git furnace-cdi
open https://repository.jboss.org/nexus/index.html
echo "Cleaning up temp directory $WORK_DIR"
rm -rf $WORK_DIR
Clone this wiki locally