Skip to content

Commit 3300b11

Browse files
committed
release-version.sh: add default for any pom-* root
Now any project 'foo' with a root POM with artifactId=pom-foo will be properly tagged as 'foo-x.y.z' rather than 'pom-foo-x.y.z'. This also handles the SCIFIO case, so we no longer need to hardcode it.
1 parent fbcf048 commit 3300b11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/release-version.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ BASE_GAV="$(maven_helper gav-from-pom pom.xml)" ||
7272
die "Could not obtain GAV coordinates for base project"
7373

7474
case "$BASE_GAV" in
75-
io.scif:pom-scifio:*)
76-
test -n "$TAG" || TAG=-Dtag=scifio-$VERSION
77-
;;
7875
net.imagej:pom-imagej:2.0.0-*SNAPSHOT)
7976
test -n "$TAG" || TAG=-Dtag=imagej-$VERSION
8077
test -n "$DEV_VERSION" ||
@@ -93,6 +90,10 @@ net.sf.antcontrib:cpptasks-parallel:*|*:maven-nar-plugin:*|*:nar-maven-plugin:*)
9390
SKIP_PUSH=t
9491
ALT_REPOSITORY=$IMAGEJ_THIRDPARTY_REPOSITORY
9592
;;
93+
*:pom-*:*)
94+
ARTIFACT_ID=${BASE_GAV#*:pom-}
95+
ARTIFACT_ID=${ARTIFACT_ID%:*}
96+
test -n "$TAG" || TAG=-Dtag=$ARTIFACT_ID-$VERSION
9697
esac
9798

9899
git update-index -q --refresh &&

0 commit comments

Comments
 (0)