Skip to content

Commit 3ec49ce

Browse files
committed
Add Java 25 into test matrix
1 parent 16f79da commit 3ec49ce

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
matrix:
4242
kind: [maven, gradle]
4343
# Test on the latest Java version once Gradle & Maven support it.
44-
jre: [17, 21, 24]
44+
jre: [17, 21, 25]
4545
os: [ubuntu-latest, windows-latest]
4646
include:
4747
# npm on linux only (crazy slow on windows)

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ public enum GradleVersionSupport {
5757
GradleVersionSupport(String version) {
5858
String minVersionForRunningJRE;
5959
switch (Jvm.version()) {
60+
case 26:
61+
throw new UnsupportedOperationException("Needs to update the minVersionForRunningJRE, see https://docs.gradle.org/current/userguide/compatibility.html");
6062
case 25:
61-
// TODO: https://docs.gradle.org/current/userguide/compatibility.html
63+
minVersionForRunningJRE = "9.1.0";
64+
break;
6265
case 24:
6366
minVersionForRunningJRE = "8.14";
6467
break;

0 commit comments

Comments
 (0)