File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
buildSrc/src/main/java/org/springframework/build Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .build ;
18
18
19
+ import java .io .File ;
20
+ import java .nio .file .Path ;
21
+ import java .util .List ;
22
+
19
23
import io .spring .javaformat .gradle .SpringJavaFormatPlugin ;
20
24
import io .spring .nohttp .gradle .NoHttpExtension ;
21
25
import io .spring .nohttp .gradle .NoHttpPlugin ;
27
31
import org .gradle .api .plugins .quality .CheckstyleExtension ;
28
32
import org .gradle .api .plugins .quality .CheckstylePlugin ;
29
33
30
- import java .io .File ;
31
- import java .nio .file .Path ;
32
- import java .util .List ;
33
-
34
34
/**
35
35
* {@link Plugin} that applies conventions for checkstyle.
36
+ *
36
37
* @author Brian Clozel
37
38
*/
38
39
public class CheckstyleConventions {
@@ -49,7 +50,7 @@ public void apply(Project project) {
49
50
project .getPlugins ().apply (CheckstylePlugin .class );
50
51
project .getTasks ().withType (Checkstyle .class ).forEach (checkstyle -> checkstyle .getMaxHeapSize ().set ("1g" ));
51
52
CheckstyleExtension checkstyle = project .getExtensions ().getByType (CheckstyleExtension .class );
52
- checkstyle .setToolVersion ("10.10 .0" );
53
+ checkstyle .setToolVersion ("10.12 .0" );
53
54
checkstyle .getConfigDirectory ().set (project .getRootProject ().file ("src/checkstyle" ));
54
55
String version = SpringJavaFormatPlugin .class .getPackage ().getImplementationVersion ();
55
56
DependencySet checkstyleDependencies = project .getConfigurations ().getByName ("checkstyle" ).getDependencies ();
Original file line number Diff line number Diff line change 25
25
* Plugin to apply conventions to projects that are part of Spring Framework's build.
26
26
* Conventions are applied in response to various plugins being applied.
27
27
*
28
- * When the {@link JavaBasePlugin} is applied, the conventions in {@link CheckstyleConventions},
28
+ * <p> When the {@link JavaBasePlugin} is applied, the conventions in {@link CheckstyleConventions},
29
29
* {@link TestConventions} and {@link JavaConventions} are applied.
30
30
* When the {@link KotlinBasePlugin} is applied, the conventions in {@link KotlinConventions}
31
31
* are applied.
@@ -41,4 +41,5 @@ public void apply(Project project) {
41
41
new KotlinConventions ().apply (project );
42
42
new TestConventions ().apply (project );
43
43
}
44
+
44
45
}
You can’t perform that action at this time.
0 commit comments