Skip to content

Commit 0d160a7

Browse files
committed
Properly set JDK versions
1 parent 8c72b77 commit 0d160a7

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.build-jdk17

Whitespace-only changes.

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,19 @@ jobs:
1616
- uses: actions/setup-java@v3
1717
with:
1818
distribution: "temurin"
19-
java-version: ${{ matrix.java }}
19+
# The JDK listed last will be the default and what Maven runs with
20+
# https://github.com/marketplace/actions/setup-java-jdk#install-multiple-jdks
21+
java-version: |
22+
${{ matrix.java }}
23+
25
2024
cache: "maven"
2125
- name: "Build"
22-
run: mvn --batch-mode -no-transfer-progress -V verify
26+
run: |
27+
mvn \
28+
--batch-mode \
29+
-no-transfer-progress \
30+
-V \
31+
-Dproject.build.jdk.version=${{ matrix.java }} \
32+
verify
2333
env:
2434
JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED

0 commit comments

Comments
 (0)