Skip to content
Snippets Groups Projects
Commit 71e48948 authored by Cam Saül's avatar Cam Saül
Browse files

./build-uberjar lets you specify version interactively

parent f01acad1
No related branches found
No related tags found
No related merge requests found
......@@ -6,14 +6,13 @@ version() {
if [ ! $CI ]; then
VERSION=$(./version)
echo "Tagging this uberjar as version '$VERSION'"
read -e -p "Is this OK? [y/n] " TAG_IS_OKAY_Y_OR_N
if [ $TAG_IS_OKAY_Y_OR_N != "y" ]; then
"Stopping now! Please check that you've pushed the correct tag to origin/master and try again. 😿"
exit 1
read -e -p "What version string we use for this uberjar? [$VERSION] " VERSION_RESPONSE
if [ $VERSION_RESPONSE ]; then
VERSION=$VERSION_RESPONSE
fi
echo "Tagging uberjar with version '$VERSION'."
# Ok, now generate the appropriate version.properties file.
echo "version=$VERSION" > resources/version.properties
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment