Skip to content

Commit 90b2b83

Browse files
committed
release-version.sh: fix pom-scijava version check
We can't ask maven.scijava.org anymore, because it no longer proxies Maven Central since the upgrade to Nexus v3. So instead, we ask Maven Central directly, which works well.
1 parent dfb5cf9 commit 90b2b83

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

release-version.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,10 @@ test "$SKIP_VERSION_CHECK" || {
181181
}
182182

183183
# Check that the project extends the latest version of pom-scijava.
184-
MAVEN_HELPER="$(cd "$(dirname "$0")" && pwd)/maven-helper.sh"
185-
test -f "$MAVEN_HELPER" ||
186-
die "Missing helper script at '$MAVEN_HELPER'
187-
Do you have a full clone of https://github.com/scijava/scijava-scripts?"
188184
test "$SKIP_VERSION_CHECK" -o "$parentGAV" != "${parentGAV#$}" || {
189185
debug "Checking pom-scijava parent version"
190-
latestParentVersion=$(sh -$- "$MAVEN_HELPER" latest-version "$parentGAV")
186+
psjMavenMetadata=https://repo1.maven.org/maven2/org/scijava/pom-scijava/maven-metadata.xml
187+
latestParentVersion=$(curl -fsL "$psjMavenMetadata" | grep '<release>' | sed 's;.*>\([^<]*\)<.*;\1;')
191188
currentParentVersion=${parentGAV##*:}
192189
test "$currentParentVersion" = "$latestParentVersion" ||
193190
die "Newer version of parent '$parentGAV' is available: $latestParentVersion.

0 commit comments

Comments
 (0)