|
681 | 681 | <groupId>com.diffplug.spotless</groupId> |
682 | 682 | <artifactId>spotless-maven-plugin</artifactId> |
683 | 683 | <version>2.44.4</version> |
| 684 | + <configuration> |
| 685 | + <formats> |
| 686 | + <format> |
| 687 | + <trimTrailingWhitespace/> |
| 688 | + <!-- <endWithNewline/> --> |
| 689 | + <indent> |
| 690 | + <spaces>true</spaces> |
| 691 | + <spacesPerTab>2</spacesPerTab> |
| 692 | + </indent> |
| 693 | + <includes> |
| 694 | + <include>.gitignore</include> |
| 695 | + </includes> |
| 696 | + <excludes> |
| 697 | + <exclude>**gradlew**</exclude> |
| 698 | + <exclude>**mvnw**</exclude> |
| 699 | + <exclude>extensions/panache/**/pom.xml</exclude> |
| 700 | + <exclude>test-framework/junit5/pom.xml</exclude> |
| 701 | + <exclude>test-framework/security/pom.xml</exclude> |
| 702 | + </excludes> |
| 703 | + </format> |
| 704 | + </formats> |
| 705 | + <java> |
| 706 | + <eclipse> |
| 707 | + <file>${maven.multiModuleProjectDirectory}/independent-projects/ide-config/src/main/resources/eclipse-format.xml</file> |
| 708 | + </eclipse> |
| 709 | + <importOrder> |
| 710 | + <file>${maven.multiModuleProjectDirectory}/independent-projects/ide-config/src/main/resources/eclipse.importorder</file> |
| 711 | + </importOrder> |
| 712 | + <!-- <removeUnusedImports /> --> |
| 713 | + <excludes> |
| 714 | + <!-- https://github.com/diffplug/spotless/issues/2491 --> |
| 715 | + <exclude>**/src/main/java/io/quarkus/rest/client/reactive/deployment/ClientContextResolverHandler.java</exclude> |
| 716 | + <exclude>**/src/main/java/io/quarkus/rest/client/reactive/deployment/ClientExceptionMapperHandler.java</exclude> |
| 717 | + <exclude>**/src/main/java/io/quarkus/rest/client/reactive/deployment/ClientRedirectHandler.java</exclude> |
| 718 | + </excludes> |
| 719 | + </java> |
| 720 | + <kotlin> |
| 721 | + <ktfmt> |
| 722 | + <style>KOTLINLANG</style> |
| 723 | + </ktfmt> |
| 724 | + </kotlin> |
| 725 | + </configuration> |
684 | 726 | </plugin> |
685 | 727 | </plugins> |
686 | 728 | </pluginManagement> |
|
698 | 740 | <build> |
699 | 741 | <plugins> |
700 | 742 | <plugin> |
701 | | - <groupId>net.revelc.code.formatter</groupId> |
702 | | - <artifactId>formatter-maven-plugin</artifactId> |
703 | | - <executions> |
704 | | - <execution> |
705 | | - <phase>process-sources</phase> |
706 | | - <goals> |
707 | | - <goal>format</goal> |
708 | | - </goals> |
709 | | - </execution> |
710 | | - </executions> |
711 | | - </plugin> |
712 | | - <plugin> |
713 | | - <groupId>net.revelc.code</groupId> |
714 | | - <artifactId>impsort-maven-plugin</artifactId> |
715 | | - <configuration> |
716 | | - <removeUnused>true</removeUnused> |
717 | | - </configuration> |
| 743 | + <groupId>com.diffplug.spotless</groupId> |
| 744 | + <artifactId>spotless-maven-plugin</artifactId> |
718 | 745 | <executions> |
719 | 746 | <execution> |
720 | | - <id>sort-imports</id> |
| 747 | + <id>spotless-apply</id> |
| 748 | + <phase>verify</phase> |
721 | 749 | <goals> |
722 | | - <goal>sort</goal> |
| 750 | + <goal>apply</goal> |
723 | 751 | </goals> |
724 | 752 | </execution> |
725 | 753 | </executions> |
|
735 | 763 | <name>no-format</name> |
736 | 764 | </property> |
737 | 765 | </activation> |
738 | | - <build> |
739 | | - <plugins> |
740 | | - <plugin> |
741 | | - <groupId>net.revelc.code.formatter</groupId> |
742 | | - <artifactId>formatter-maven-plugin</artifactId> |
743 | | - <executions> |
744 | | - <execution> |
745 | | - <phase>process-sources</phase> |
746 | | - <goals> |
747 | | - <goal>validate</goal> |
748 | | - </goals> |
749 | | - </execution> |
750 | | - </executions> |
751 | | - </plugin> |
752 | | - <plugin> |
753 | | - <groupId>net.revelc.code</groupId> |
754 | | - <artifactId>impsort-maven-plugin</artifactId> |
755 | | - <configuration> |
756 | | - <removeUnused>true</removeUnused> |
757 | | - </configuration> |
758 | | - <executions> |
759 | | - <execution> |
760 | | - <id>check-imports</id> |
761 | | - <goals> |
762 | | - <goal>check</goal> |
763 | | - </goals> |
764 | | - </execution> |
765 | | - </executions> |
766 | | - </plugin> |
767 | | - </plugins> |
768 | | - </build> |
769 | | - </profile> |
770 | | - |
771 | | - <profile> |
772 | | - <id>format-kotlin</id> |
773 | | - <activation> |
774 | | - <activeByDefault>true</activeByDefault> |
775 | | - <property> |
776 | | - <name>!no-format</name> |
777 | | - </property> |
778 | | - <file> |
779 | | - <exists>src/main/kotlin</exists> |
780 | | - </file> |
781 | | - </activation> |
782 | 766 | <build> |
783 | 767 | <plugins> |
784 | 768 | <plugin> |
785 | 769 | <groupId>com.diffplug.spotless</groupId> |
786 | 770 | <artifactId>spotless-maven-plugin</artifactId> |
787 | 771 | <executions> |
788 | 772 | <execution> |
789 | | - <id>format-kotlin</id> |
790 | | - <phase>process-sources</phase> |
| 773 | + <id>spotless-check</id> |
| 774 | + <phase>verify</phase> |
791 | 775 | <goals> |
792 | | - <goal>apply</goal> |
| 776 | + <goal>check</goal> |
793 | 777 | </goals> |
794 | 778 | </execution> |
795 | 779 | </executions> |
796 | | - |
797 | | - <configuration> |
798 | | - <kotlin> |
799 | | - <ktfmt> |
800 | | - <style>KOTLINLANG</style> |
801 | | - <!-- optional, other options are DEFAULT, DROPBOX, GOOGLE and KOTLINLANG --> |
802 | | - </ktfmt> |
803 | | - |
804 | | - <!-- |
805 | | - <ktfmt> |
806 | | - <style>DEFAULT</style> <!– optional, other options are DEFAULT, DROPBOX, GOOGLE and KOTLINLANG –> |
807 | | - </ktfmt> |
808 | | - --> |
809 | | - |
810 | | - </kotlin> |
811 | | - </configuration> |
812 | 780 | </plugin> |
813 | 781 | </plugins> |
814 | 782 | </build> |
|
0 commit comments