mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Upgrade to Checkstyle 10.12.4
Closes gh-37976
This commit is contained in:
parent
7c864804d5
commit
f081a0e9be
@ -239,7 +239,7 @@ class JavaConventions {
|
|||||||
project.getTasks().withType(Format.class, (Format) -> Format.setEncoding("UTF-8"));
|
project.getTasks().withType(Format.class, (Format) -> Format.setEncoding("UTF-8"));
|
||||||
project.getPlugins().apply(CheckstylePlugin.class);
|
project.getPlugins().apply(CheckstylePlugin.class);
|
||||||
CheckstyleExtension checkstyle = project.getExtensions().getByType(CheckstyleExtension.class);
|
CheckstyleExtension checkstyle = project.getExtensions().getByType(CheckstyleExtension.class);
|
||||||
checkstyle.setToolVersion("8.45.1");
|
checkstyle.setToolVersion("10.12.4");
|
||||||
checkstyle.getConfigDirectory().set(project.getRootProject().file("src/checkstyle"));
|
checkstyle.getConfigDirectory().set(project.getRootProject().file("src/checkstyle"));
|
||||||
String version = SpringJavaFormatPlugin.class.getPackage().getImplementationVersion();
|
String version = SpringJavaFormatPlugin.class.getPackage().getImplementationVersion();
|
||||||
DependencySet checkstyleDependencies = project.getConfigurations().getByName("checkstyle").getDependencies();
|
DependencySet checkstyleDependencies = project.getConfigurations().getByName("checkstyle").getDependencies();
|
||||||
|
Loading…
Reference in New Issue
Block a user