Skip to content

Commit 2bfcefa

Browse files
committed
Reinstate support for disabling build checking
Closes gh-13291
1 parent 4d84933 commit 2bfcefa

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

spring-boot-parent/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,9 @@
509509
<executions>
510510
<execution>
511511
<phase>validate</phase>
512+
<configuration>
513+
<skip>${disable.checks}</skip>
514+
</configuration>
512515
<goals>
513516
<goal>validate</goal>
514517
</goals>
@@ -523,6 +526,7 @@
523526
<id>checkstyle-validation</id>
524527
<phase>validate</phase>
525528
<configuration>
529+
<skip>${disable.checks}</skip>
526530
<configLocation>src/checkstyle/checkstyle.xml</configLocation>
527531
<suppressionsLocation>src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
528532
<includeTestSourceDirectory>true</includeTestSourceDirectory>

spring-boot-samples/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<main.basedir>${basedir}/..</main.basedir>
2323
<java.version>1.8</java.version>
2424
<spring-javaformat.version>0.0.2</spring-javaformat.version>
25+
<disable.checks>false</disable.checks>
2526
</properties>
2627
<modules>
2728
<module>spring-boot-sample-ant</module>
@@ -132,6 +133,9 @@
132133
<executions>
133134
<execution>
134135
<phase>validate</phase>
136+
<configuration>
137+
<skip>${disable.checks}</skip>
138+
</configuration>
135139
<goals>
136140
<goal>validate</goal>
137141
</goals>
@@ -159,6 +163,7 @@
159163
<id>checkstyle-validation</id>
160164
<phase>validate</phase>
161165
<configuration>
166+
<skip>${disable.checks}</skip>
162167
<configLocation>../spring-boot-parent/src/checkstyle/checkstyle.xml</configLocation>
163168
<suppressionsLocation>../spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
164169
<includeTestSourceDirectory>true</includeTestSourceDirectory>
@@ -328,4 +333,17 @@
328333
</snapshots>
329334
</pluginRepository>
330335
</pluginRepositories>
336+
<profiles>
337+
<profile>
338+
<id>fast</id>
339+
<activation>
340+
<property>
341+
<name>fast</name>
342+
</property>
343+
</activation>
344+
<properties>
345+
<disable.checks>true</disable.checks>
346+
</properties>
347+
</profile>
348+
</profiles>
331349
</project>

0 commit comments

Comments
 (0)