Skip to content

Commit

Permalink
Fix nanopub-java version to 1.47, latest version using purl.org (test…
Browse files Browse the repository at this point in the history
…s fails when using the new w3id.org version because it generates different hashes)
  • Loading branch information
vemonet committed Jan 31, 2024
1 parent f0fba19 commit b8cecc9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/nanopub-java
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ set -e

function download-nanopub-jar {
mkdir -p $LIBDIR
echo "Getting latest nanopub version..."
NANOPUB_LATEST_LOCATION=$(
curl --head -s https://github.com/Nanopublication/nanopub-java/releases/latest \
| egrep -i '^location:'
)
NANOPUB_VERSION=${NANOPUB_LATEST_LOCATION##*-}
NANOPUB_VERSION="${NANOPUB_VERSION%"${NANOPUB_VERSION##*[![:space:]]}"}"
# NANOPUB_VERSION=1.38
# echo "Getting latest nanopub version..."
# NANOPUB_LATEST_LOCATION=$(
# curl --head -s https://github.com/Nanopublication/nanopub-java/releases/latest \
# | egrep -i '^location:'
# )
# NANOPUB_VERSION=${NANOPUB_LATEST_LOCATION##*-}
# NANOPUB_VERSION="${NANOPUB_VERSION%"${NANOPUB_VERSION##*[![:space:]]}"}"
NANOPUB_VERSION=1.47
echo "Downloading nanopub jar file version $NANOPUB_VERSION in $LIBDIR/nanopub-${NANOPUB_VERSION}-jar-with-dependencies.jar"
curl -L --output "$LIBDIR/nanopub-${NANOPUB_VERSION}-jar-with-dependencies.jar" "https://github.com/Nanopublication/nanopub-java/releases/download/nanopub-${NANOPUB_VERSION}/nanopub-${NANOPUB_VERSION}-jar-with-dependencies.jar"
}
Expand Down

0 comments on commit b8cecc9

Please sign in to comment.