Skip to content

Commit 88eb626

Browse files
committed
try building for java 17
1 parent 4677f15 commit 88eb626

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/maven.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ on:
88
- pull_request
99

1010
jobs:
11-
build:
11+
build_before_java16:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
1515
java:
16-
- '8'
17-
- '11'
18-
#- '17'
19-
name: Java ${{ matrix.Java }} sample
16+
- '8' # 2030.12
17+
- '11' # 2026.09
18+
name: Build for Java ${{ matrix.Java }}
2019
steps:
2120
- uses: actions/checkout@v2
2221
- name: Setup java
@@ -26,3 +25,20 @@ jobs:
2625
java-version: ${{ matrix.java }}
2726
- name: Build with Maven
2827
run: mvn -B package --file pom.xml
28+
29+
build_after_java16:
30+
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
java:
34+
- '17' # 2029.09
35+
name: Build for Java ${{ matrix.Java }}
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: Setup java
39+
uses: actions/setup-java@v2
40+
with:
41+
distribution: 'temurin'
42+
java-version: ${{ matrix.java }}
43+
- name: Build with Maven
44+
run: MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED" mvn -B package --file pom.xml

0 commit comments

Comments
 (0)