diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2887001..527ad69 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -24,14 +24,16 @@ jobs: with: java-version: ${{ matrix.java }} distribution: 'zulu' + cache: 'maven' - 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 @@ -71,7 +73,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 +88,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' diff --git a/pom.xml b/pom.xml index ac409bb..e6963a9 100644 --- a/pom.xml +++ b/pom.xml @@ -162,6 +162,7 @@ maven-assembly-plugin + 3.7.1 false true