Skip to content

Commit bc4192d

Browse files
authored
- Add Java 23 compatibility (#338)
1 parent fb903eb commit bc4192d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
javaversion: ["8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22"]
14+
javaversion: ["8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"]
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: actions/setup-java@v4
1818
with:
1919
distribution: "zulu"
20-
java-version: "22" # Always use the latest JDK for building
20+
java-version: "23" # Always use the latest JDK for building
2121
- name: Load Maven dependencies cache
2222
uses: actions/cache@v3
2323
with:
@@ -43,7 +43,7 @@ jobs:
4343
- uses: actions/setup-java@v4
4444
with:
4545
distribution: "zulu"
46-
java-version: "22" # Always use the latest JDK for building
46+
java-version: "23" # Always use the latest JDK for building
4747
- name: Load Maven dependencies cache
4848
uses: actions/cache@v3
4949
with:
@@ -77,7 +77,7 @@ jobs:
7777
- uses: actions/setup-java@v4
7878
with:
7979
distribution: "zulu"
80-
java-version: "22" # Always use the latest JDK for building
80+
java-version: "23" # Always use the latest JDK for building
8181
- name: Install checkstyle and style guide
8282
run: make install-checkstyle
8383
- name: Load Maven dependencies and CVE database cache
@@ -102,7 +102,7 @@ jobs:
102102
- uses: actions/setup-java@v4
103103
with:
104104
distribution: "zulu"
105-
java-version: "22" # Always use the latest JDK for building
105+
java-version: "23" # Always use the latest JDK for building
106106
- name: Load Maven dependencies cache
107107
uses: actions/cache@v3
108108
with:

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@
233233
<compilerArgs>
234234
<arg>-XDcompilePolicy=simple</arg>
235235
<arg>-Xplugin:ErrorProne</arg>
236+
<arg>-Xlint:-options</arg>
236237
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
237238
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
238239
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>

0 commit comments

Comments
 (0)