From a37095dc988e514fb55fea2ae9cc5a373f60f89b Mon Sep 17 00:00:00 2001 From: "Kevin S. Clarke" Date: Wed, 8 Jan 2025 23:29:00 -0500 Subject: [PATCH] Support using a downloadable version of jpv3 (#235) --- .github/workflows/release.yml | 13 +++++++++++++ pom.xml | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c3e1080..6829a217 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,6 +67,19 @@ jobs: with: maven-version: ${{ matrix.maven }} + # The following two steps could be removed once the latest v3 is in Maven Central, but + # it might be nice to allow snapshots in the POM still as an option to support testing + - name: Download JPv3 + env: + JPV3_URL: ksclarke.nyc3.digitaloceanspaces.com + run: | + curl -s --output-dir /tmp -O "https://${{ env.JPV3_URL }}/jiiify-presentation-v3-0.0.0-SNAPSHOT.jar" + + - name: Install JPv3 + run: | + mvn install:install-file -Dfile=/tmp/jiiify-presentation-v3-0.0.0-SNAPSHOT.jar -Dpackaging=jar \ + -DgroupId=info.freelibrary -DartifactId=jiiify-presentation-v3 -Dversion=0.0.0-SNAPSHOT + - name: Release with Maven env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} diff --git a/pom.xml b/pom.xml index cee32756..6e25138d 100644 --- a/pom.xml +++ b/pom.xml @@ -160,9 +160,10 @@ - info.freelibrary:jiiify-presentation-v3 + info.freelibrary:jpv3-webrepl info/freelibrary/iiif/presentation/v3/properties/MediaType.class + info/freelibrary/iiif/presentation/v3/utils/MessageCodes.class