|
48 | 48 | <maven-surefire-plugin.version>3.5.6</maven-surefire-plugin.version> |
49 | 49 | <maven-javadoc-plugin.version>3.12.0</maven-javadoc-plugin.version> |
50 | 50 | <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
| 51 | + <maven-checkstyle-plugin.version>3.5.0</maven-checkstyle-plugin.version> |
| 52 | + <checkstyle.failOnViolation>false</checkstyle.failOnViolation> |
| 53 | + <checkstyle.version>9.3</checkstyle.version> |
51 | 54 | <gmavenplus-plugin.version>5.1.0</gmavenplus-plugin.version> |
52 | 55 | <sonatype-central-publishing-plugin.version>0.11.0</sonatype-central-publishing-plugin.version> |
53 | 56 | <groovy.version>5.1.2</groovy.version> |
|
591 | 594 | <groupId>org.sonatype.central</groupId> |
592 | 595 | <artifactId>central-publishing-maven-plugin</artifactId> |
593 | 596 | </plugin> |
| 597 | + <plugin> |
| 598 | + <groupId>org.apache.maven.plugins</groupId> |
| 599 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 600 | + <version>${maven-checkstyle-plugin.version}</version> |
| 601 | + <dependencies> |
| 602 | + <dependency> |
| 603 | + <groupId>com.puppycrawl.tools</groupId> |
| 604 | + <artifactId>checkstyle</artifactId> |
| 605 | + <version>${checkstyle.version}</version> |
| 606 | + </dependency> |
| 607 | + </dependencies> |
| 608 | + <executions> |
| 609 | + <execution> |
| 610 | + <id>checkstyle-validation</id> |
| 611 | + <phase>validate</phase> |
| 612 | + <inherited>true</inherited> |
| 613 | + <configuration> |
| 614 | + <skip>false</skip> |
| 615 | + <configLocation>src/checkstyle/checkstyle.xml</configLocation> |
| 616 | + <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 617 | + <consoleOutput>true</consoleOutput> |
| 618 | + <failsOnError>false</failsOnError> |
| 619 | + <failOnViolation>${checkstyle.failOnViolation}</failOnViolation> |
| 620 | + </configuration> |
| 621 | + <goals> |
| 622 | + <goal>check</goal> |
| 623 | + </goals> |
| 624 | + </execution> |
| 625 | + </executions> |
| 626 | + </plugin> |
594 | 627 | </plugins> |
595 | 628 | </build> |
596 | 629 |
|
|
0 commit comments