From 3e3243fe85df1fb398167263a6f7ae62c86563b6 Mon Sep 17 00:00:00 2001 From: Emmanuel Hugonnet Date: Fri, 23 Oct 2026 11:34:15 +0200 Subject: [PATCH] build: replace Checkstyle with Spotless (google-java-format) Signed-off-by: Emmanuel Hugonnet --- pom.xml | 112 +++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 91 insertions(+), 21 deletions(-) diff --git a/pom.xml b/pom.xml index b7524bcae..3c360664a 100644 --- a/pom.xml +++ b/pom.xml @@ -79,9 +79,12 @@ 1.6.3 2.0.5 2.50.0 + 3.10.4 + 1.37.0 0.14.1 -XDaddTypeAnnotationsToSymbol=true -Xplugin:ErrorProne -XepDisableAllChecks -Xep:NullAway:ERROR -Xep:RequireExplicitNullMarking:WARN -XepOpt:NullAway:ExhaustiveOverride=true -XepOpt:NullAway:OnlyNullMarked=true -XepOpt:NullAway:JSpecifyMode=true -XepExcludedPaths:.*/src/test/.* -XepDisableWarningsInGeneratedCode + true true @@ -588,6 +591,11 @@ + + com.diffplug.spotless + spotless-maven-plugin + ${spotless-maven-plugin.version} + @@ -604,32 +612,94 @@ central-publishing-maven-plugin - org.apache.maven.plugins - maven-checkstyle-plugin - ${maven-checkstyle-plugin.version} - - - com.puppycrawl.tools - checkstyle - ${checkstyle.version} - - + com.diffplug.spotless + spotless-maven-plugin + + ${skip.spotless} + + + + + + .gitignore + + + + + + true + 4 + + + + + + + **/src/main/java/**/*.java + **/src/test/java/**/*.java + + + 1.36.1 + + true + false + + + + + + + true + 4 + + + + + pom.xml + **/pom.xml + + + UTF-8 + false + true + true + 4 + false + false + recommended_2008_06 + groupId,artifactId + true + false + false + + + + + + docs/**/*.md + CODE_OF_CONDUCT.md + CONTRIBUTING.md + CONTRIBUTING_INTEGRATIONS.md + README.md + RELEASE.md + SECURITY.md + + + COMMONMARK + ALL,TOC + YamlFrontMatter,Emoji + + 120 + + + + - checkstyle-validation - validate - true - - false - src/checkstyle/checkstyle.xml - true - true - false - ${checkstyle.failOnViolation} - check + compile