From 603c2195d5e6ced2a466c082a8c6db01b2d8f464 Mon Sep 17 00:00:00 2001
From: Devin Smith <devinsmith@deephaven.io>
Date: Mon, 28 Oct 2024 12:02:25 -0700
Subject: [PATCH] Add Java 23 tests (#216)

---
 .github/workflows/check.yml                            | 10 +++++++++-
 .../src/main/groovy/io/deephaven/csv/Constants.groovy  |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index c3d5bb7b..8ea6b4bf 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -51,6 +51,14 @@ jobs:
           java-version: '21'
           cache: 'gradle'
 
+      - name: Setup JDK 23
+        id: setup-java-23
+        uses: actions/setup-java@v4
+        with:
+          distribution: 'temurin'
+          java-version: '23'
+          cache: 'gradle'
+
       - name: Set JAVA_HOME
         run: echo "JAVA_HOME=${{ steps.setup-java-21.outputs.path }}" >> $GITHUB_ENV
 
@@ -58,7 +66,7 @@ jobs:
         run: |
           cat .github/env/${{ runner.os }}/gradle.properties >> gradle.properties
           echo >> gradle.properties
-          echo "org.gradle.java.installations.paths=${{ steps.setup-java-8.outputs.path }},${{ steps.setup-java-11.outputs.path }},${{ steps.setup-java-17.outputs.path }},${{ steps.setup-java-21.outputs.path }}" >> gradle.properties
+          echo "org.gradle.java.installations.paths=${{ steps.setup-java-8.outputs.path }},${{ steps.setup-java-11.outputs.path }},${{ steps.setup-java-17.outputs.path }},${{ steps.setup-java-21.outputs.path }},${{ steps.setup-java-23.outputs.path }}" >> gradle.properties
           echo "customDoubleParser=${{ matrix.customDoubleParser }}" >> gradle.properties
           cat gradle.properties
 
diff --git a/buildSrc/src/main/groovy/io/deephaven/csv/Constants.groovy b/buildSrc/src/main/groovy/io/deephaven/csv/Constants.groovy
index 7cf50033..b85c6545 100644
--- a/buildSrc/src/main/groovy/io/deephaven/csv/Constants.groovy
+++ b/buildSrc/src/main/groovy/io/deephaven/csv/Constants.groovy
@@ -3,5 +3,5 @@ package io.deephaven.csv
 class Constants {
     public static int LATEST_LTS = 21
 
-    public static int[] TEST_VERSIONS = [8, 11, 17, 21]
+    public static int[] TEST_VERSIONS = [8, 11, 17, 21, 23]
 }