|
39 | 39 | <hamcrest.version>2.2</hamcrest.version> |
40 | 40 | <okhttp3.version>4.4.1</okhttp3.version> |
41 | 41 | <okio.version>2.5.0</okio.version> |
42 | | - <spotless-maven-plugin.goal>apply</spotless-maven-plugin.goal> |
43 | 42 | <!-- Using this as the minimum bar for code coverage. Adding methods without covering them will fail this. --> |
44 | 43 | <jacoco.coverage.target.bundle.method>0.70</jacoco.coverage.target.bundle.method> |
45 | 44 | <jacoco.coverage.target.class.method>0.50</jacoco.coverage.target.class.method> |
|
325 | 324 | <plugin> |
326 | 325 | <groupId>com.diffplug.spotless</groupId> |
327 | 326 | <artifactId>spotless-maven-plugin</artifactId> |
328 | | - <version>2.7.0</version> |
| 327 | + <version>2.8.1</version> |
329 | 328 | <executions> |
330 | 329 | <execution> |
331 | 330 | <id>spotless-check</id> |
332 | | - <phase>process-sources</phase> |
| 331 | + <!-- runs in verify phase by default --> |
333 | 332 | <goals> |
334 | | - <goal>${spotless-maven-plugin.goal}</goal> |
| 333 | + <!-- can be disabled using -Dspotless.check.skip=true --> |
| 334 | + <goal>check</goal> |
335 | 335 | </goals> |
336 | 336 | </execution> |
337 | 337 | </executions> |
|
574 | 574 | <properties> |
575 | 575 | <!-- Only fail code coverage on non-windows machines --> |
576 | 576 | <jacoco.haltOnFailure>true</jacoco.haltOnFailure> |
577 | | - <spotless-maven-plugin.goal>check</spotless-maven-plugin.goal> |
578 | 577 | </properties> |
579 | 578 | </profile> |
580 | 579 | <profile> |
|
590 | 589 | <groupId>org.jacoco</groupId> |
591 | 590 | <artifactId>jacoco-maven-plugin</artifactId> |
592 | 591 | </plugin> |
| 592 | + <plugin> |
| 593 | + <groupId>com.diffplug.spotless</groupId> |
| 594 | + <artifactId>spotless-maven-plugin</artifactId> |
| 595 | + <executions> |
| 596 | + <execution> |
| 597 | + <id>spotless-check</id> |
| 598 | + <!-- In CI, run check early in the build --> |
| 599 | + <phase>process-sources</phase> |
| 600 | + <goals> |
| 601 | + <goal>check</goal> |
| 602 | + </goals> |
| 603 | + </execution> |
| 604 | + </executions> |
| 605 | + </plugin> |
593 | 606 | </plugins> |
594 | 607 | </build> |
595 | 608 | </profile> |
596 | 609 | <profile> |
597 | 610 | <id>release</id> |
598 | | - <properties> |
599 | | - <spotless-maven-plugin.goal>check</spotless-maven-plugin.goal> |
600 | | - </properties> |
601 | 611 | <build> |
602 | 612 | <plugins> |
603 | 613 | <plugin> |
|
0 commit comments