Skip to content

Commit e16bb12

Browse files
committed
release-version.sh: add --dev-version parameter
This parameter is useful when the release plugin's built-in version increment heuristic does not produce the desired new version.
1 parent 04b740f commit e16bb12

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

release-version.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ BATCH_MODE=--batch-mode
1313
SKIP_PUSH=
1414
SKIP_DEPLOY=
1515
TAG=
16+
DEV_VERSION=
1617
EXTRA_ARGS=
1718
ALT_REPOSITORY=
1819
while test $# -gt 0
@@ -23,6 +24,8 @@ do
2324
--skip-deploy) SKIP_DEPLOY=t;;
2425
--tag=*)
2526
TAG="-Dtag=${1#--*=}";;
27+
--dev-version=*|--development-version=*)
28+
DEV_VERSION="-DdevelopmentVersion=${1#--*=}";;
2629
--extra-arg=*|--extra-args=*)
2730
EXTRA_ARGS="$EXTRA_ARGS ${1#--*=}";;
2831
--alt-repository=imagej-releases)
@@ -65,7 +68,7 @@ die "'master' is not up-to-date"
6568

6669
# Prepare new release without pushing (requires the release plugin >= 2.1)
6770
mvn $BATCH_MODE release:prepare -DpushChanges=false -Dresume=false $TAG \
68-
-DreleaseVersion="$1" "-Darguments=${EXTRA_ARGS# }" &&
71+
$DEV_VERSION -DreleaseVersion="$1" "-Darguments=${EXTRA_ARGS# }" &&
6972

7073
# Squash the two commits on the current branch into one
7174
git reset --soft HEAD^^ &&

0 commit comments

Comments
 (0)