This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch feature/auto-format-outside-ci
in repository https://gitbox.apache.org/repos/asf/sling-parent.git

commit 3bb8909bd9203bc592fde194805c5b281aae90e5
Author: Konrad Windszus <[email protected]>
AuthorDate: Mon Feb 23 14:40:44 2026 +0100

    SLING-13125 Auto-format with spotless outside CI builds
---
 sling-parent/pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sling-parent/pom.xml b/sling-parent/pom.xml
index ce4fc81..8af1200 100644
--- a/sling-parent/pom.xml
+++ b/sling-parent/pom.xml
@@ -1196,23 +1196,23 @@
             </build>
         </profile>
         <profile>
-            <!-- only check formatting with spotless by default -->
+            <!-- only check formatting with spotless by default in CI builds 
-->
             <id>format-check</id>
             <activation>
                 <property>
-                    <name>!format</name>
+                    <name>env.CI</name>
                 </property>
             </activation>
             <properties>
                 <spotless.action>check</spotless.action>
             </properties>
         </profile>
-        <!-- reformat during build with spotless with -Dformat or -Pformat -->
+        <!-- reformat during build with spotless with -Pformat -->
         <profile>
             <id>format</id>
             <activation>
                 <property>
-                    <name>format</name>
+                    <name>!env.CI</name>
                 </property>
             </activation>
             <properties>

Reply via email to