From eac9955ad3e59850136c2602ffb4783097fd69cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Sat, 19 Apr 2025 08:43:15 +0200 Subject: [PATCH] Fix checkstyle violation --- .../ws/gradle/conventions/CheckstyleConventions.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gradle/plugins/conventions-plugin/src/main/java/org/springframework/ws/gradle/conventions/CheckstyleConventions.java b/gradle/plugins/conventions-plugin/src/main/java/org/springframework/ws/gradle/conventions/CheckstyleConventions.java index 23949656..8634d96a 100644 --- a/gradle/plugins/conventions-plugin/src/main/java/org/springframework/ws/gradle/conventions/CheckstyleConventions.java +++ b/gradle/plugins/conventions-plugin/src/main/java/org/springframework/ws/gradle/conventions/CheckstyleConventions.java @@ -40,8 +40,10 @@ public class CheckstyleConventions { public void apply(Project project) { project.getPlugins().withType(JavaPlugin.class, (java) -> { project.getPlugins().apply(CheckstylePlugin.class); - project.getTasks().withType(Checkstyle.class).forEach(checkstyle -> checkstyle.getMaxHeapSize().set("1g")); - project.getTasks().named("checkstyleTest").configure(task -> task.setEnabled(false)); + project.getTasks() + .withType(Checkstyle.class) + .forEach((checkstyle) -> checkstyle.getMaxHeapSize().set("1g")); + project.getTasks().named("checkstyleTest").configure((task) -> task.setEnabled(false)); CheckstyleExtension checkstyle = project.getExtensions().getByType(CheckstyleExtension.class); checkstyle.setToolVersion("10.21.1"); checkstyle.getConfigDirectory().set(project.getRootProject().file("src/checkstyle"));