Skip to content

Commit

Permalink
Update release.sh to create uber jar
Browse files Browse the repository at this point in the history
  • Loading branch information
tony19 committed Jul 12, 2014
1 parent 0c67b88 commit 25f6d8e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions release.sh
Expand Up @@ -49,19 +49,18 @@ if [ "x$1" == "xdryrun" ]; then
fi
echo "Starting release process for logback-android ${version}..."

# Deploy release to Sonatype
mvn release:clean || exit 1
mvn -Dtag=v_${version} $dryrunflag release:prepare || exit 1
mvn -Dtag=v_${version} $dryrunflag release:perform || exit 1

mvn versions:set -DnewVersion=${version}
mvn clean install -DskipTests
mvn -f pom-uber.xml package -DskipTests -Dmy.project.version=${version}
echo "Create release version of uber-jar..."
./makejar.sh -r

md5 ${outdir}/${outf} && \
echo "Updating README.md..." && \
echo "Updating README.md..."
gsed -i -e "s/logback-android-[^j]*\.jar/${outf}/" \
-e "s/[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+/${version}/" \
-e "s/\(logback-android.*SHA1\:\).*/\1 \`$(openssl dgst -sha1 ${outdir}/${outf} | awk '{print $2}')\`)/" ${readme}
${readme}

if [ ! ${dryrun} ]; then
git add ${readme}
Expand Down

0 comments on commit 25f6d8e

Please sign in to comment.