Skip to content

Commit 71b2d04

Browse files
committed
SLING-13125 Auto-format with spotless outside CI builds
1 parent ffb3519 commit 71b2d04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sling-parent/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,23 +1196,23 @@
11961196
</build>
11971197
</profile>
11981198
<profile>
1199-
<!-- only check formatting with spotless by default -->
1199+
<!-- only check formatting with spotless by default in CI builds -->
12001200
<id>format-check</id>
12011201
<activation>
12021202
<property>
1203-
<name>!format</name>
1203+
<name>env.CI</name>
12041204
</property>
12051205
</activation>
12061206
<properties>
12071207
<spotless.action>check</spotless.action>
12081208
</properties>
12091209
</profile>
1210-
<!-- reformat during build with spotless with -Dformat or -Pformat -->
1210+
<!-- reformat during build with spotless with -Pformat -->
12111211
<profile>
12121212
<id>format</id>
12131213
<activation>
12141214
<property>
1215-
<name>format</name>
1215+
<name>!env.CI</name>
12161216
</property>
12171217
</activation>
12181218
<properties>

0 commit comments

Comments
 (0)