File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
plugin-gradle/src/test/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 4141 matrix :
4242 kind : [maven, gradle]
4343 # Test on the latest Java version once Gradle & Maven support it.
44- jre : [11, 17, 21, 23 ]
44+ jre : [11, 17, 21, 24 ]
4545 os : [ubuntu-latest]
4646 include :
4747 # test windows at the diagonals of the above matrix
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2016-2024 DiffPlug
2+ * Copyright 2016-2025 DiffPlug
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1515 */
1616package com .diffplug .gradle .spotless ;
1717
18+ import static org .junit .jupiter .api .condition .JRE .JAVA_23 ;
19+
1820import java .io .IOException ;
1921import java .util .ArrayList ;
2022import java .util .Arrays ;
2123import java .util .List ;
2224
2325import org .gradle .testkit .runner .BuildResult ;
2426import org .junit .jupiter .api .Test ;
27+ import org .junit .jupiter .api .condition .EnabledForJreRange ;
2528
2629import com .diffplug .selfie .Selfie ;
2730import com .diffplug .selfie .StringSelfie ;
@@ -57,6 +60,7 @@ void passesIfNoException() throws Exception {
5760 }
5861
5962 @ Test
63+ @ EnabledForJreRange (max = JAVA_23 ) // `[Incubating] Problems report is available at` presents in the output from Java 24 or above.
6064 void anyExceptionShouldFail () throws Exception {
6165 writeBuild (
6266 " } // format" ,
@@ -105,6 +109,7 @@ void unlessExemptedByPath() throws Exception {
105109 }
106110
107111 @ Test
112+ @ EnabledForJreRange (max = JAVA_23 ) // `[Incubating] Problems report is available at` presents in the output from Java 24 or above.
108113 void failsIfNeitherStepNorFileExempted () throws Exception {
109114 writeBuild (
110115 " ignoreErrorForStep 'nope'" ,
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2016-2024 DiffPlug
2+ * Copyright 2016-2025 DiffPlug
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -54,8 +54,11 @@ public enum GradleVersionSupport {
5454 GradleVersionSupport (String version ) {
5555 String minVersionForRunningJRE ;
5656 switch (Jvm .version ()) {
57- case 24 :
57+ case 25 :
5858 // TODO: https://docs.gradle.org/current/userguide/compatibility.html
59+ case 24 :
60+ minVersionForRunningJRE = "8.14" ;
61+ break ;
5962 case 23 :
6063 minVersionForRunningJRE = "8.10" ;
6164 break ;
You can’t perform that action at this time.
0 commit comments