|
857 | 857 | <groupId>org.codehaus.mojo</groupId> |
858 | 858 | <artifactId>flatten-maven-plugin</artifactId> |
859 | 859 | </plugin> |
860 | | - <plugin> |
861 | | - <groupId>com.diffplug.spotless</groupId> |
862 | | - <artifactId>spotless-maven-plugin</artifactId> |
863 | | - <version>${spotless.version}</version> |
864 | | - <configuration> |
865 | | - <skip>${skip.spotless}</skip> |
866 | | - <java> |
867 | | - <excludes> |
868 | | - <exclude>src/main/java/org/apache/seatunnel/antlr4/generated/*.*</exclude> |
869 | | - </excludes> |
870 | | - <googleJavaFormat> |
871 | | - <version>1.7</version> |
872 | | - <style>AOSP</style> |
873 | | - </googleJavaFormat> |
874 | | - <removeUnusedImports /> |
875 | | - <formatAnnotations /> |
876 | | - <importOrder> |
877 | | - <order>org.apache.seatunnel.shade,org.apache.seatunnel,org.apache,org,,javax,java,\#</order> |
878 | | - </importOrder> |
879 | | - <replaceRegex> |
880 | | - <name>Remove wildcard imports</name> |
881 | | - <searchRegex>import\s+(static)*\s*[^\*\s]+\*;(\r\n|\r|\n)</searchRegex> |
882 | | - <replacement>$1</replacement> |
883 | | - </replaceRegex> |
884 | | - <replaceRegex> |
885 | | - <name>Block powermock</name> |
886 | | - <searchRegex>import\s+org\.powermock\.[^\*\s]*(|\*);(\r\n|\r|\n)</searchRegex> |
887 | | - <replacement>$1</replacement> |
888 | | - </replaceRegex> |
889 | | - <replaceRegex> |
890 | | - <name>Block jUnit4 imports</name> |
891 | | - <searchRegex>import\s+org\.junit\.[^jupiter][^\*\s]*(|\*);(\r\n|\r|\n)</searchRegex> |
892 | | - <replacement>$1</replacement> |
893 | | - </replaceRegex> |
894 | | - </java> |
895 | | - <pom> |
896 | | - <sortPom> |
897 | | - <encoding>UTF-8</encoding> |
898 | | - <nrOfIndentSpace>4</nrOfIndentSpace> |
899 | | - <keepBlankLines>true</keepBlankLines> |
900 | | - <indentBlankLines>false</indentBlankLines> |
901 | | - <indentSchemaLocation>true</indentSchemaLocation> |
902 | | - <spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement> |
903 | | - <sortModules>false</sortModules> |
904 | | - <sortExecutions>false</sortExecutions> |
905 | | - <predefinedSortOrder>custom_1</predefinedSortOrder> |
906 | | - <expandEmptyElements>false</expandEmptyElements> |
907 | | - <sortProperties>false</sortProperties> |
908 | | - </sortPom> |
909 | | - <replace> |
910 | | - <name>Leading blank line</name> |
911 | | - <search>project</search> |
912 | | - <replacement>project</replacement> |
913 | | - </replace> |
914 | | - </pom> |
915 | | - <!-- disable markdown for now, it will change sidebar config in file--> |
916 | | - <!-- <markdown>--> |
917 | | - <!-- <includes>--> |
918 | | - <!-- <include>docs/**/*.md</include>--> |
919 | | - <!-- </includes>--> |
920 | | - <!-- <excludes>--> |
921 | | - <!-- <exclude>**/.github/**/*.md</exclude>--> |
922 | | - <!-- </excludes>--> |
923 | | - <!-- <flexmark />--> |
924 | | - <!-- </markdown>--> |
925 | | - <upToDateChecking> |
926 | | - <enabled>true</enabled> |
927 | | - </upToDateChecking> |
928 | | - </configuration> |
929 | | - <executions> |
930 | | - <execution> |
931 | | - <id>spotless-check</id> |
932 | | - <goals> |
933 | | - <goal>check</goal> |
934 | | - </goals> |
935 | | - <phase>validate</phase> |
936 | | - </execution> |
937 | | - </executions> |
938 | | - </plugin> |
939 | 860 | </plugins> |
940 | 861 | </build> |
941 | 862 |
|
|
0 commit comments