Skip to content

Commit f5482fd

Browse files
committed
release-version: check version of pom-scijava only
If the parent POM is not pom-scijava, don't worry about it. This commit fixes a bug introduced in 90b2b83, where the parent POM version gets checked against the newest org.scijava:pom-scijava release version, even for parent POMs besides org.scijava:pom-scijava.
1 parent 6cdd1c2 commit f5482fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

release-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ test "$SKIP_VERSION_CHECK" || {
188188
}
189189

190190
# Check that the project extends the latest version of pom-scijava.
191-
test "$SKIP_VERSION_CHECK" -o "$parentGAV" != "${parentGAV#$}" || {
191+
test "$SKIP_VERSION_CHECK" -o "$parentGroup" != "org.scijava" -o "$parentArtifact" != "pom-scijava" || {
192192
debug "Checking pom-scijava parent version"
193193
psjMavenMetadata=https://repo1.maven.org/maven2/org/scijava/pom-scijava/maven-metadata.xml
194194
latestParentVersion=$(curl -fsL "$psjMavenMetadata" | grep '<release>' | sed 's;.*>\([^<]*\)<.*;\1;')

0 commit comments

Comments
 (0)