Skip to content

Commit

Permalink
Add Java 23 into test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Dec 5, 2024
1 parent a8c7a3f commit 9b793c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix:
os: [ ubuntu-latest, windows-latest ]
# Test on all LTS JDKs and the latest JDK.
jdk: [ 8, 11, 17, 21, 22 ]
jdk: [ 8, 11, 17, 21, 23 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ allGradle.forEach { gv ->
if (gv < GradleVersion.version("7.3") && testJdk >= 17) return@forEach
// Gradle 8.5+ supports Java 21.
if (gv < GradleVersion.version("8.5") && testJdk >= 21) return@forEach
// Gradle 8.8+ supports Java 22.
if (gv < GradleVersion.version("8.8") && testJdk >= 22) return@forEach
// Gradle 8.10+ supports Java 23.
if (gv < GradleVersion.version("8.10") && testJdk >= 23) return@forEach
// Executing Gradle on JVM versions 16 and lower has been deprecated. Use JVM 17 or greater to execute Gradle.
// See https://docs.gradle.org/8.10/userguide/upgrading_version_8.html#minimum_daemon_jvm_version.
if (gv >= GradleVersion.version("8.10") && testJdk < 17) return@forEach
Expand Down

0 comments on commit 9b793c9

Please sign in to comment.