From bc4192db6d8bec1ce171c37979912975a9640f6b Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Wed, 25 Sep 2024 12:19:51 -0600 Subject: [PATCH] - Add Java 23 compatibility (#338) --- .github/workflows/ci.yml | 10 +++++----- pom.xml | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fc561b3..b1104b4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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: @@ -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 @@ -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: diff --git a/pom.xml b/pom.xml index 1b51691d..e551425c 100644 --- a/pom.xml +++ b/pom.xml @@ -233,6 +233,7 @@ -XDcompilePolicy=simple -Xplugin:ErrorProne + -Xlint:-options -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED