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