From 5888028356fbba15dc707672d1826ee8ea161f37 Mon Sep 17 00:00:00 2001 From: Eric Bottard Date: Tue, 28 Oct 2025 16:46:53 +0100 Subject: [PATCH] Run format:apply locally, CI runs format:check. Signed-off-by: Eric Bottard --- pom.xml | 71 +++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 57 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index f3619e8a8c0..cb968e89345 100644 --- a/pom.xml +++ b/pom.xml @@ -366,20 +366,6 @@ - - io.spring.javaformat - spring-javaformat-maven-plugin - ${spring-javaformat-maven-plugin.version} - - - validate - true - - validate - - - - org.apache.maven.plugins maven-checkstyle-plugin @@ -611,6 +597,63 @@ + + format-check + + + env.CI + true + + + + + + io.spring.javaformat + spring-javaformat-maven-plugin + ${spring-javaformat-maven-plugin.version} + + + validate + true + + validate + + + + + + + + + + + format-apply + + + !env.CI + + + + + + io.spring.javaformat + spring-javaformat-maven-plugin + ${spring-javaformat-maven-plugin.version} + + + process-sources + true + + apply + + + + + + + + + license