Skip to content

Commit 12f9b51

Browse files
committed
try and fix j8 and 11
Signed-off-by: Jay DeLuca <jaydeluca4@gmail.com>
1 parent c6b6d5a commit 12f9b51

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/multi-version-test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ jobs:
1919
with:
2020
persist-credentials: false
2121

22-
- name: Set up Java ${{ matrix.java }}
23-
id: setup-java
22+
- name: Set up Java ${{ matrix.java }} for testing
23+
id: setup-test-java
2424
uses: actions/setup-java@v4
2525
with:
2626
distribution: "temurin"
2727
java-version: ${{ matrix.java }}
2828

29+
- name: Set up Java 25 for Maven
30+
id: setup-build-java
31+
uses: actions/setup-java@v4
32+
with:
33+
distribution: "temurin"
34+
java-version: "25"
35+
2936
- name: Cache local Maven repository
3037
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
3138
with:
@@ -38,7 +45,7 @@ jobs:
3845
- name: Build and test on Java ${{ matrix.java }}
3946
run: >-
4047
./mvnw clean install
41-
-Dtest.java.version=${{ matrix.java }}
48+
-Djvm=${{ steps.setup-test-java.outputs.path }}/bin/java
4249
-Dspotless.skip=true
4350
-Dcheckstyle.skip=true
4451
-Dwarnings=-nowarn

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@
307307
<plugin>
308308
<groupId>org.apache.maven.plugins</groupId>
309309
<artifactId>maven-surefire-plugin</artifactId>
310+
<configuration>
311+
<jvm>${jvm}</jvm>
312+
</configuration>
310313
</plugin>
311314
<plugin>
312315
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)