|
369 | 369 | <spring-javaformat-maven-plugin.version>0.0.47</spring-javaformat-maven-plugin.version> |
370 | 370 | <antora-maven-plugin.version>1.0.0-alpha.5</antora-maven-plugin.version> |
371 | 371 | <antora-component-version-maven-plugin.version>0.0.4</antora-component-version-maven-plugin.version> |
372 | | - <maven-checkstyle-plugin.version>3.5.0</maven-checkstyle-plugin.version> |
| 372 | + <maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version> |
373 | 373 | <maven-checkstyle-plugin.failsOnError>true</maven-checkstyle-plugin.failsOnError> |
374 | 374 | <maven-checkstyle-plugin.failOnViolation>true</maven-checkstyle-plugin.failOnViolation> |
375 | 375 | <puppycrawl-tools-checkstyle.version>9.3</puppycrawl-tools-checkstyle.version> |
376 | | - <spring-javaformat-checkstyle.version>0.0.43</spring-javaformat-checkstyle.version> |
| 376 | + <spring-javaformat-checkstyle.version>0.0.47</spring-javaformat-checkstyle.version> |
377 | 377 | <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
378 | 378 |
|
379 | 379 | <error-prone.version>2.44.0</error-prone.version> |
|
399 | 399 | </execution> |
400 | 400 | </executions> |
401 | 401 | </plugin> |
402 | | - <plugin> |
403 | | - <groupId>org.apache.maven.plugins</groupId> |
404 | | - <artifactId>maven-checkstyle-plugin</artifactId> |
405 | | - <version>${maven-checkstyle-plugin.version}</version> |
406 | | - <dependencies> |
407 | | - <dependency> |
408 | | - <groupId>com.puppycrawl.tools</groupId> |
409 | | - <artifactId>checkstyle</artifactId> |
410 | | - <version>${puppycrawl-tools-checkstyle.version}</version> |
411 | | - </dependency> |
412 | | - <dependency> |
413 | | - <groupId>io.spring.javaformat</groupId> |
414 | | - <artifactId>spring-javaformat-checkstyle</artifactId> |
415 | | - <version>${spring-javaformat-checkstyle.version}</version> |
416 | | - </dependency> |
417 | | - </dependencies> |
418 | | - <executions> |
419 | | - <execution> |
420 | | - <id>checkstyle-validation</id> |
421 | | - <phase>validate</phase> |
422 | | - <inherited>true</inherited> |
423 | | - <configuration> |
424 | | - <skip>${disable.checks}</skip> |
425 | | - <configLocation>src/checkstyle/checkstyle.xml</configLocation> |
426 | | - <headerLocation>src/checkstyle/checkstyle-header.txt</headerLocation> |
427 | | - <includeTestSourceDirectory>true</includeTestSourceDirectory> |
428 | | - <propertyExpansion> |
429 | | - checkstyle.build.directory=${project.build.directory} |
430 | | - checkstyle.suppressions.file=${project.basedir}/src/checkstyle/checkstyle-suppressions.xml |
431 | | - checkstyle.additional.suppressions.file=${project.basedir}/src/checkstyle/checkstyle-suppressions.xml |
432 | | - checkstyle.header.file=${project.basedir}/src/checkstyle/checkstyle-header.txt |
433 | | - </propertyExpansion> |
434 | | - <consoleOutput>true</consoleOutput> |
435 | | - <failsOnError>${maven-checkstyle-plugin.failsOnError} |
436 | | - </failsOnError> |
437 | | - <failOnViolation> |
438 | | - ${maven-checkstyle-plugin.failOnViolation} |
439 | | - </failOnViolation> |
440 | | - </configuration> |
441 | | - <goals> |
442 | | - <goal>check</goal> |
443 | | - </goals> |
444 | | - </execution> |
445 | | - </executions> |
446 | | - </plugin> |
447 | 402 | <plugin> |
448 | 403 | <groupId>org.apache.maven.plugins</groupId> |
449 | 404 | <artifactId>maven-site-plugin</artifactId> |
|
553 | 508 | <version>${maven-surefire-plugin.version}</version> |
554 | 509 | <configuration> |
555 | 510 | <argLine>${surefireArgLine}</argLine> |
556 | | - |
557 | 511 | <useFile>false</useFile> |
558 | 512 | <trimStackTrace>false</trimStackTrace> |
559 | | - |
560 | 513 | <!-- Show test timing information --> |
561 | 514 | <reportFormat>plain</reportFormat> |
562 | | - |
563 | 515 | <!-- Output test execution times in the logs --> |
564 | 516 | <redirectTestOutputToFile>false</redirectTestOutputToFile> |
565 | 517 | </configuration> |
|
583 | 535 | <version>${maven-source-plugin.version}</version> |
584 | 536 | <executions> |
585 | 537 | <execution> |
586 | | - <id>generate-sources</id> |
| 538 | + <id>package-sources</id> |
587 | 539 | <phase>package</phase> |
588 | 540 | <goals> |
589 | | - <goal>jar</goal> |
| 541 | + <goal>jar-no-fork</goal> |
590 | 542 | </goals> |
591 | 543 | </execution> |
592 | 544 | </executions> |
|
643 | 595 | </configuration> |
644 | 596 | <executions> |
645 | 597 | <execution> |
646 | | - <id>generate-javadocs</id> |
| 598 | + <id>package-javadocs</id> |
647 | 599 | <phase>package</phase> |
648 | 600 | <goals> |
649 | 601 | <goal>jar</goal> |
|
672 | 624 | <version>${spring-javaformat-maven-plugin.version}</version> |
673 | 625 | <executions> |
674 | 626 | <execution> |
| 627 | + <id>format-check</id> |
675 | 628 | <phase>validate</phase> |
676 | 629 | <inherited>true</inherited> |
677 | 630 | <goals> |
|
700 | 653 | <version>${spring-javaformat-maven-plugin.version}</version> |
701 | 654 | <executions> |
702 | 655 | <execution> |
| 656 | + <id>format-apply</id> |
703 | 657 | <phase>process-sources</phase> |
704 | 658 | <inherited>true</inherited> |
705 | 659 | <goals> |
|
713 | 667 | </build> |
714 | 668 |
|
715 | 669 | </profile> |
| 670 | + <profile> |
| 671 | + <!-- Moving this plugin in an always active profile that appears *after* the |
| 672 | + conditional javaformat --> |
| 673 | + <id>checkstyle-check</id> |
| 674 | + <activation> |
| 675 | + <activeByDefault>true</activeByDefault> |
| 676 | + </activation> |
| 677 | + <build> |
| 678 | + <plugins> |
| 679 | + <plugin> |
| 680 | + <groupId>org.apache.maven.plugins</groupId> |
| 681 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 682 | + <version>${maven-checkstyle-plugin.version}</version> |
| 683 | + <dependencies> |
| 684 | + <dependency> |
| 685 | + <groupId>com.puppycrawl.tools</groupId> |
| 686 | + <artifactId>checkstyle</artifactId> |
| 687 | + <version>${puppycrawl-tools-checkstyle.version}</version> |
| 688 | + </dependency> |
| 689 | + <dependency> |
| 690 | + <groupId>io.spring.javaformat</groupId> |
| 691 | + <artifactId>spring-javaformat-checkstyle</artifactId> |
| 692 | + <version>${spring-javaformat-checkstyle.version}</version> |
| 693 | + </dependency> |
| 694 | + </dependencies> |
| 695 | + <executions> |
| 696 | + <execution> |
| 697 | + <id>checkstyle-validation</id> |
| 698 | + <phase>verify</phase> |
| 699 | + <inherited>true</inherited> |
| 700 | + <configuration> |
| 701 | + <skip>${disable.checks}</skip> |
| 702 | + <configLocation>src/checkstyle/checkstyle.xml |
| 703 | + </configLocation> |
| 704 | + <headerLocation>src/checkstyle/checkstyle-header.txt |
| 705 | + </headerLocation> |
| 706 | + <includeTestSourceDirectory>true |
| 707 | + </includeTestSourceDirectory> |
| 708 | + <propertyExpansion> |
| 709 | + checkstyle.build.directory=${project.build.directory} |
| 710 | + checkstyle.suppressions.file=${project.basedir}/src/checkstyle/checkstyle-suppressions.xml |
| 711 | + checkstyle.additional.suppressions.file=${project.basedir}/src/checkstyle/checkstyle-suppressions.xml |
| 712 | + checkstyle.header.file=${project.basedir}/src/checkstyle/checkstyle-header.txt |
| 713 | + </propertyExpansion> |
| 714 | + <consoleOutput>true</consoleOutput> |
| 715 | + <failsOnError>${maven-checkstyle-plugin.failsOnError} |
| 716 | + </failsOnError> |
| 717 | + <failOnViolation> |
| 718 | + ${maven-checkstyle-plugin.failOnViolation} |
| 719 | + </failOnViolation> |
| 720 | + </configuration> |
| 721 | + <goals> |
| 722 | + <goal>check</goal> |
| 723 | + </goals> |
| 724 | + </execution> |
| 725 | + </executions> |
| 726 | + </plugin> |
| 727 | + |
| 728 | + </plugins> |
| 729 | + </build> |
| 730 | + </profile> |
716 | 731 | <profile> |
717 | 732 | <id>license</id> |
718 | 733 | <activation> |
|
0 commit comments