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 41
41
matrix :
42
42
kind : [maven, gradle]
43
43
# Test on the latest Java version once Gradle & Maven support it.
44
- jre : [11, 17, 21, 23 ]
44
+ jre : [11, 17, 21, 24 ]
45
45
os : [ubuntu-latest]
46
46
include :
47
47
# test windows at the diagonals of the above matrix
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2016-2024 DiffPlug
2
+ * Copyright 2016-2025 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
15
15
*/
16
16
package com .diffplug .gradle .spotless ;
17
17
18
+ import static org .junit .jupiter .api .condition .JRE .JAVA_23 ;
19
+
18
20
import java .io .IOException ;
19
21
import java .util .ArrayList ;
20
22
import java .util .Arrays ;
21
23
import java .util .List ;
22
24
23
25
import org .gradle .testkit .runner .BuildResult ;
24
26
import org .junit .jupiter .api .Test ;
27
+ import org .junit .jupiter .api .condition .EnabledForJreRange ;
25
28
26
29
import com .diffplug .selfie .Selfie ;
27
30
import com .diffplug .selfie .StringSelfie ;
@@ -57,6 +60,7 @@ void passesIfNoException() throws Exception {
57
60
}
58
61
59
62
@ Test
63
+ @ EnabledForJreRange (max = JAVA_23 ) // `[Incubating] Problems report is available at` presents in the output from Java 24 or above.
60
64
void anyExceptionShouldFail () throws Exception {
61
65
writeBuild (
62
66
" } // format" ,
@@ -105,6 +109,7 @@ void unlessExemptedByPath() throws Exception {
105
109
}
106
110
107
111
@ Test
112
+ @ EnabledForJreRange (max = JAVA_23 ) // `[Incubating] Problems report is available at` presents in the output from Java 24 or above.
108
113
void failsIfNeitherStepNorFileExempted () throws Exception {
109
114
writeBuild (
110
115
" ignoreErrorForStep 'nope'" ,
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2016-2024 DiffPlug
2
+ * Copyright 2016-2025 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -54,8 +54,11 @@ public enum GradleVersionSupport {
54
54
GradleVersionSupport (String version ) {
55
55
String minVersionForRunningJRE ;
56
56
switch (Jvm .version ()) {
57
- case 24 :
57
+ case 25 :
58
58
// TODO: https://docs.gradle.org/current/userguide/compatibility.html
59
+ case 24 :
60
+ minVersionForRunningJRE = "8.14" ;
61
+ break ;
59
62
case 23 :
60
63
minVersionForRunningJRE = "8.10" ;
61
64
break ;
You can’t perform that action at this time.
0 commit comments