Allow akka sbt plugin to be excluded from remote publishing

This commit is contained in:
Björn Antonsson 2013-05-30 21:57:25 +02:00
parent 9d2677a4cf
commit 3b5947d834
2 changed files with 12 additions and 1 deletions

View file

@ -101,7 +101,7 @@ declare release_path=${default_path}
declare -r unzipped_dir="target/dist/unzipped"
# flags
unset run_tests dry_run no_revert
unset run_tests dry_run no_revert no_akka_plugin
# get the source location for this script; handles symlinks
function get_script_path {
@ -127,6 +127,7 @@ Usage: ${script_name} [options] VERSION
-p | --path PATH Set the path on the release server (default ${default_path})
-n | --dry-run Build everything but do not push the release
-r | --no-revert On dry-run don't revert git commits and tags
--no-akka-plugin Publish the akka sbt plugin locally and not to the repositry
EOM
}
@ -160,6 +161,7 @@ while true; do
-p | --path ) release_path=$2; shift 2 ;;
-n | --dry-run) dry_run=true; shift ;;
-r | --no-revert) no_revert=true; shift ;;
--no-akka-plugin) no_akka_plugin=true; shift ;;
* ) break ;;
esac
done
@ -302,6 +304,9 @@ if [ ! $dry_run ]; then
else
RELEASE_OPT="-Dakka.genjavadoc.enabled=true"
fi
if [ $no_akka_plugin ]; then
RELEASE_OPT="${RELEASE_OPT} -Dpublish.plugin.locally=true"
fi
try sbt $RELEASE_OPT build-release
echolog "Creating gzipped tar download..."
try tar -cz -C ${unzipped_dir} -f ${release_dir}/downloads/akka-${version}.tgz akka-${version}