Skip to content
Merged
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
19 changes: 5 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,22 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
java-compilation: [ 11, 17, 19, 20-ea ]
# Keep this list as: all supported LTS JDKs, the latest GA JDK, and the latest EA JDK.
java-runtime: [ 8, 11, 17, 19, 20-ea ]
java: [ 11, 17, 19, 20-ea ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java-compilation }}
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3.6.0
with:
distribution: temurin
java-version: ${{ matrix.java-compilation }}
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven using JDK ${{ matrix.java-compilation }}
run: mvn -B verify -DskipTests
- name: Set up JDK ${{ matrix.java-runtime }}
uses: actions/setup-java@v3.6.0
with:
distribution: temurin
java-version: ${{ matrix.java-runtime }}
- name: Run test with Maven using JDK ${{ matrix.java-runtime }}
# In order to support Windows Powershell, a space between -D property=true is required.
run: mvn -B verify -D maven.main.skip=true
- name: Build with Maven using JDK ${{ matrix.java }}
run: mvn -B verify
18 changes: 2 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
</modules>

<properties>
<!-- Require JDK 11 and build for 8 -->
<!-- Require and build for JDK 11 -->
<jdk.min.version>11</jdk.min.version>
<jdk.release.version>8</jdk.release.version>
<jdk.release.version>11</jdk.release.version>

<!-- Common dependency -->
<version.jboss-logging>3.4.3.Final</version.jboss-logging>
Expand All @@ -83,20 +83,6 @@
</properties>

<profiles>
<profile>
<!-- Profile that configures enforcer plugin to allow JDK 8 only for running tests -->
<!-- Required since the main build requires JDK 11 for compilation -->
<id>jdk8-test-only</id>
<activation>
<property>
<name>maven.main.skip</name>
<value>true</value>
</property>
</activation>
<properties>
<jdk.min.version>1.8</jdk.min.version>
</properties>
</profile>
<!-- Code coverage report using JaCoCo -->
<profile>
<id>coverage</id>
Expand Down