From 63e623676c870bdf6932274a3b437ceb5ee72d42 Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Tue, 8 Apr 2025 12:30:40 +0200 Subject: [PATCH] Align Spotless check/apply with Maven parent Builds should either apply spotless or check for it depending on whether it is running in CI or not. Detected in the course of support-and-care/maven-support-and-care#77 and codehaus-plexus/.github#45 --- pom.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pom.xml b/pom.xml index a7d3811b7..f866e8e45 100644 --- a/pom.xml +++ b/pom.xml @@ -880,5 +880,27 @@ limitations under the License. + + format-check + + + env.CI + + + + check + + + + format + + + !env.CI + + + + apply + +