Skip to content

Commit

Permalink
- Add Java 23 compatibility (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 authored Sep 25, 2024
1 parent fb903eb commit bc4192d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
javaversion: ["8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22"]
javaversion: ["8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "22" # Always use the latest JDK for building
java-version: "23" # Always use the latest JDK for building
- name: Load Maven dependencies cache
uses: actions/cache@v3
with:
Expand All @@ -43,7 +43,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "22" # Always use the latest JDK for building
java-version: "23" # Always use the latest JDK for building
- name: Load Maven dependencies cache
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "22" # Always use the latest JDK for building
java-version: "23" # Always use the latest JDK for building
- name: Install checkstyle and style guide
run: make install-checkstyle
- name: Load Maven dependencies and CVE database cache
Expand All @@ -102,7 +102,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "22" # Always use the latest JDK for building
java-version: "23" # Always use the latest JDK for building
- name: Load Maven dependencies cache
uses: actions/cache@v3
with:
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>-Xplugin:ErrorProne</arg>
<arg>-Xlint:-options</arg>
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
Expand Down

0 comments on commit bc4192d

Please sign in to comment.