Skip to content

Commit d5382ad

Browse files
authoredJun 5, 2024··
Add Java 22 into test matrix (#2162)
2 parents bbf9a56 + 7145a10 commit d5382ad

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
matrix:
4444
kind: [maven, gradle]
4545
# Test on the latest Java version once Gradle & Maven support it.
46-
jre: [11, 17, 21]
46+
jre: [11, 17, 21, 22]
4747
os: [ubuntu-latest]
4848
include:
4949
# test windows at the diagonals of the above matrix

‎plugin-gradle/src/test/java/com/diffplug/gradle/spotless/GradleIntegrationHarness.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ public enum GradleVersionSupport {
5454
GradleVersionSupport(String version) {
5555
String minVersionForRunningJRE;
5656
switch (Jvm.version()) {
57-
case 22:
57+
case 23:
5858
// TODO: https://docs.gradle.org/current/userguide/compatibility.html
59+
case 22:
60+
minVersionForRunningJRE = "8.8";
61+
break;
5962
case 21:
6063
minVersionForRunningJRE = "8.5";
6164
break;

0 commit comments

Comments
 (0)
Please sign in to comment.