|
97 | 97 | <checkstyle.version>10.3.3</checkstyle.version> |
98 | 98 | <sonar.version>8.9.0.43852</sonar.version> |
99 | 99 | <sonar-java.version>7.2.0.26923</sonar-java.version> |
100 | | - <maven.checkstyle.plugin.version>3.1.2</maven.checkstyle.plugin.version> |
101 | 100 | <maven.sevntu.checkstyle.plugin.version>1.42.0</maven.sevntu.checkstyle.plugin.version> |
102 | 101 | <!-- it should be a version of checkstyle that is compatible/compiled with sevntu --> |
103 | 102 | <maven.sevntu.checkstyle.plugin.checkstyle.version> |
104 | 103 | 10.0 |
105 | 104 | </maven.sevntu.checkstyle.plugin.checkstyle.version> |
| 105 | + <antrun.plugin.version>3.1.0</antrun.plugin.version> |
| 106 | + <checkstyle.configLocation>https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${maven.sevntu.checkstyle.plugin.checkstyle.version}/config/checkstyle_checks.xml</checkstyle.configLocation> |
| 107 | + <checkstyle.sevntu.configLocation>https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle_sevntu_checks.xml</checkstyle.sevntu.configLocation> |
106 | 108 | <maven.jacoco.plugin.version>0.8.5</maven.jacoco.plugin.version> |
107 | 109 | <java.version>11</java.version> |
108 | 110 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
408 | 410 | </plugin> |
409 | 411 | <plugin> |
410 | 412 | <groupId>org.apache.maven.plugins</groupId> |
411 | | - <artifactId>maven-checkstyle-plugin</artifactId> |
412 | | - <version>${maven.checkstyle.plugin.version}</version> |
413 | | - <dependencies> |
414 | | - <dependency> |
415 | | - <groupId>com.puppycrawl.tools</groupId> |
416 | | - <artifactId>checkstyle</artifactId> |
417 | | - <version>${maven.sevntu.checkstyle.plugin.checkstyle.version}</version> |
418 | | - </dependency> |
419 | | - <dependency> |
420 | | - <groupId>com.github.sevntu-checkstyle</groupId> |
421 | | - <artifactId>sevntu-checks</artifactId> |
422 | | - <version>${maven.sevntu.checkstyle.plugin.version}</version> |
423 | | - </dependency> |
424 | | - </dependencies> |
| 413 | + <artifactId>maven-antrun-plugin</artifactId> |
| 414 | + <version>${antrun.plugin.version}</version> |
425 | 415 | <executions> |
426 | 416 | <execution> |
427 | | - <id>checkstyle-check</id> |
| 417 | + <id>ant-phase-verify</id> |
428 | 418 | <phase>verify</phase> |
429 | 419 | <goals> |
430 | | - <goal>check</goal> |
| 420 | + <goal>run</goal> |
431 | 421 | </goals> |
432 | 422 | <configuration> |
433 | | - <configLocation>https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${maven.sevntu.checkstyle.plugin.checkstyle.version}/config/checkstyle_checks.xml</configLocation> |
434 | | - <failOnViolation>true</failOnViolation> |
435 | | - <headerLocation>I just need to put here smth to let it not use default - LICENSE.txt</headerLocation> |
436 | | - <propertiesLocation>config/checkstyle.properties</propertiesLocation> |
437 | | - <includeTestResources>false</includeTestResources> |
438 | | - <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 423 | + <target> |
| 424 | + <property name="mvn.project.build.directory" value="${project.build.directory}" /> |
| 425 | + <property name="checkstyle.configLocation" value="${checkstyle.configLocation}" /> |
| 426 | + <ant antfile="config/ant-phase-verify.xml" /> |
| 427 | + </target> |
439 | 428 | </configuration> |
440 | 429 | </execution> |
441 | 430 | <execution> |
442 | | - <id>sevntu-checkstyle-check</id> |
| 431 | + <id>ant-phase-verify-sevntu</id> |
443 | 432 | <phase>verify</phase> |
444 | 433 | <goals> |
445 | | - <goal>check</goal> |
| 434 | + <goal>run</goal> |
446 | 435 | </goals> |
447 | 436 | <configuration> |
448 | | - <configLocation>https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle_sevntu_checks.xml</configLocation> |
449 | | - <failOnViolation>true</failOnViolation> |
450 | | - <includeResources>false</includeResources> |
451 | | - <includeTestResources>false</includeTestResources> |
452 | | - <logViolationsToConsole>true</logViolationsToConsole> |
453 | | - <maxAllowedViolations>0</maxAllowedViolations> |
454 | | - <violationSeverity>error</violationSeverity> |
455 | | - <propertyExpansion>project.basedir=${project.basedir}</propertyExpansion> |
| 437 | + <target> |
| 438 | + <property name="mvn.project.build.directory" value="${project.build.directory}" /> |
| 439 | + <property name="project.basedir" value="${project.basedir}" /> |
| 440 | + <property name="checkstyle.sevntu.configLocation" |
| 441 | + value="${checkstyle.sevntu.configLocation}" /> |
| 442 | + <ant antfile="config/ant-phase-verify-sevntu.xml" /> |
| 443 | + </target> |
456 | 444 | </configuration> |
457 | 445 | </execution> |
458 | 446 | </executions> |
| 447 | + <dependencies> |
| 448 | + <dependency> |
| 449 | + <groupId>com.puppycrawl.tools</groupId> |
| 450 | + <artifactId>checkstyle</artifactId> |
| 451 | + <version>${maven.sevntu.checkstyle.plugin.checkstyle.version}</version> |
| 452 | + </dependency> |
| 453 | + <dependency> |
| 454 | + <groupId>com.github.sevntu-checkstyle</groupId> |
| 455 | + <artifactId>sevntu-checks</artifactId> |
| 456 | + <version>${maven.sevntu.checkstyle.plugin.version}</version> |
| 457 | + </dependency> |
| 458 | + </dependencies> |
459 | 459 | </plugin> |
460 | 460 | <plugin> |
461 | 461 | <groupId>org.apache.maven.plugins</groupId> |
|
851 | 851 | <properties> |
852 | 852 | <skipTests>true</skipTests> |
853 | 853 | <skipITs>true</skipITs> |
854 | | - <checkstyle.skip>true</checkstyle.skip> |
| 854 | + <checkstyle.ant.skip>true</checkstyle.ant.skip> |
855 | 855 | <pmd.skip>true</pmd.skip> |
856 | 856 | <spotbugs.skip>true</spotbugs.skip> |
857 | 857 | <xml.skip>true</xml.skip> |
|
865 | 865 | <id>sonarqube-validations</id> |
866 | 866 | <properties> |
867 | 867 | <skipITs>true</skipITs> |
868 | | - <checkstyle.skip>true</checkstyle.skip> |
| 868 | + <checkstyle.ant.skip>true</checkstyle.ant.skip> |
869 | 869 | <pmd.skip>true</pmd.skip> |
870 | 870 | <spotbugs.skip>true</spotbugs.skip> |
871 | 871 | <xml.skip>true</xml.skip> |
|
0 commit comments