diff --git a/.github/workflows/simple-excel-publish.yml b/.github/workflows/simple-excel-publish.yml index adfd5a5..24955b9 100644 --- a/.github/workflows/simple-excel-publish.yml +++ b/.github/workflows/simple-excel-publish.yml @@ -12,15 +12,25 @@ on: jobs: build: + name: Java ${{ matrix.java }} build runs-on: ubuntu-latest + continue-on-error: ${{ matrix.experimental }} + strategy: + fail-fast: true + matrix: + java: [ 11 ] + experimental: [false] + include: + - java: 25 + experimental: true steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 for Shared Runner - uses: actions/setup-java@v3 + - uses: actions/checkout@v6 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v5 with: distribution: 'zulu' - java-version: '11' + java-version: ${{ matrix.java }} cache: 'maven' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file @@ -31,6 +41,7 @@ jobs: GITHUB_TOKEN: ${{ github.token }} - name: Publish to GitHub Packages Apache Maven - run: mvn -B deploy -s $GITHUB_WORKSPACE/settings.xml + if: (github.ref == 'refs/heads/master' || github.ref == 'refs/tags/*') && !matrix.experimental # Only run on main branch or tags and non-experimental + run: mvn -B deploy -DskipTests -s $GITHUB_WORKSPACE/settings.xml env: GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 5038351..acfc2b9 100644 --- a/pom.xml +++ b/pom.xml @@ -7,20 +7,17 @@ Library that utilizes Apache POI to read Excel files simply. 11 - ${java.version} - ${java.version} + ${java.version} UTF-8 - 5.2.5 - 4.4 - 1.26.0 + 5.5.1 + 4.5.0 - 5.10.2 - 5.10.0 - 2.2 - 1.4 + 5.14.1 + 5.21.0 + 3.0 1.3.0 @@ -44,12 +41,6 @@ poi-ooxml ${apache-poi.version} - - org.apache.commons - commons-compress - 1.26.0 - compile - org.apache.commons commons-collections4 @@ -75,29 +66,6 @@ ${mockito.version} test - - junit-addons - junit-addons - ${junit-addons.version} - test - - - - junit - junit - - - - xerces - xercesImpl - - - - xerces - xmlParserAPIs - - - org.hamcrest hamcrest-library