Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/simple-excel-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
44 changes: 6 additions & 38 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@
<description>Library that utilizes Apache POI to read Excel files simply.</description>
<properties>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.release>${java.version}</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- Project Dependencies -->
<apache-poi.version>5.2.5</apache-poi.version> <!-- reminder - remove the explicit commons-compress dependency when this gets updated. -->
<commons-collections4.version>4.4</commons-collections4.version>
<commons-compress.version>1.26.0</commons-compress.version> <!-- Included to address CVE-2024-25710 and CVE-2024-26308 -->
<apache-poi.version>5.5.1</apache-poi.version>
<commons-collections4.version>4.5.0</commons-collections4.version>

<!-- Testing Dependencies -->
<junit.version>5.10.2</junit.version>
<mockito.version>5.10.0</mockito.version>
<hamcrest.version>2.2</hamcrest.version>
<junit-addons.version>1.4</junit-addons.version>
<junit.version>5.14.1</junit.version>
<mockito.version>5.21.0</mockito.version>
<hamcrest.version>3.0</hamcrest.version>
<jimfs.version>1.3.0</jimfs.version>
</properties>

Expand All @@ -44,12 +41,6 @@
<artifactId>poi-ooxml</artifactId>
<version>${apache-poi.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.26.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
Expand All @@ -75,29 +66,6 @@
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit-addons</groupId>
<artifactId>junit-addons</artifactId>
<version>${junit-addons.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<!-- Exclude this really old version of junit that junit-addons depends on -->
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
<exclusion>
<!-- Exclude this really old version of xerces that junit-addons depends on -->
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
</exclusion>
<exclusion>
<!-- Exclude this really old version of xerces that junit-addons depends on -->
<groupId>xerces</groupId>
<artifactId>xmlParserAPIs</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
Expand Down