From 1115e07b7362587c7fe5c8cee8b030b1c2fcc4e0 Mon Sep 17 00:00:00 2001
From: Jean-Marie Burel <j.burel@dundee.ac.uk>
Date: Fri, 17 Jan 2025 14:27:55 +0000
Subject: [PATCH 1/3] Bump actions version

---
 .github/workflows/maven.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 2887001..cadf18e 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -24,6 +24,7 @@ jobs:
         with:
           java-version: ${{ matrix.java }}
           distribution: 'zulu'
+          cache: 'maven'
       - name: Build
         run: mvn ${{ env.maven_commands }}
       - name: Upload JAR as artifact
@@ -71,7 +72,7 @@ jobs:
     needs: build
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Retrieve version
         id: get_version
         run: |
@@ -86,7 +87,7 @@ jobs:
             echo server='ome.releases' >> $GITHUB_OUTPUT
           fi
       - name: Set up Repository
-        uses: actions/setup-java@v3
+        uses: actions/setup-java@v4
         with:
           java-version: 8
           distribution: 'zulu'

From 008e7a2933b496f226764af6e7d50094c52ab688 Mon Sep 17 00:00:00 2001
From: Jean-Marie Burel <j.burel@dundee.ac.uk>
Date: Fri, 17 Jan 2025 14:29:52 +0000
Subject: [PATCH 2/3] Fix upload of artifacts

---
 .github/workflows/maven.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index cadf18e..527ad69 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -28,11 +28,12 @@ jobs:
       - name: Build
         run: mvn ${{ env.maven_commands }}
       - name: Upload JAR as artifact
-        if: matrix.os == 'ubuntu-latest' && matrix.java == '1.8'
-        uses: actions/upload-artifact@v2
+        if: matrix.os == 'ubuntu-latest' && matrix.java == '8'
+        uses: actions/upload-artifact@v4
         with:
           name: ZarrReader
           path: target/*.jar
+          if-no-files-found: error
   deploy_snapshots:
     if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'ome' }}
     needs: build

From d05f283c1d7b4d7dbaeefc80c8a5bff058d7afdd Mon Sep 17 00:00:00 2001
From: Jean-Marie Burel <j.burel@dundee.ac.uk>
Date: Fri, 17 Jan 2025 16:45:10 +0000
Subject: [PATCH 3/3] Set version of plugin to avoid warning

---
 pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pom.xml b/pom.xml
index ac409bb..e6963a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -162,6 +162,7 @@
       </plugin>
       <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
+        <version>3.7.1</version>
         <configuration>
           <attach>false</attach>
           <appendAssemblyId>true</appendAssemblyId>