This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git
The following commit(s) were added to refs/heads/master by this push:
new 977e1ecc8 Add : add check profile (#2283)
977e1ecc8 is described below
commit 977e1ecc821bde3c9b8d770c9dd89e20d78878b0
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Sat Oct 14 17:15:59 2023 +0800
Add : add check profile (#2283)
* Add : add check profile
* Add : add check profile
* Add : add back the removed plugins
* Add : add back the removed plugins
---
pom.xml | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 132 insertions(+)
diff --git a/pom.xml b/pom.xml
index ac3777023..526b51de2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -874,6 +874,138 @@
</pluginManagement>
</build>
</profile>
+ <profile>
+ <id>check</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <version>${apache-rat-plugin.version}</version>
+ <configuration>
+ <excludes>
+ <exclude>**/target/**</exclude>
+ <exclude>**/logs/**</exclude>
+ <exclude>**/*.log</exclude>
+ <!-- IDE files -->
+ <exclude>**/*.iml</exclude>
+ <exclude>**/.idea/**</exclude>
+ <exclude>**/*.classpath</exclude>
+ <exclude>**/.project</exclude>
+ <exclude>**/.settings/**</exclude>
+
<exclude>**/dependency-reduced-pom.xml</exclude>
+ <!-- git files -->
+ <exclude>**/.gitignore</exclude>
+ <exclude>**/.gitmodules</exclude>
+ <exclude>**/.git/**</exclude>
+ <!-- CI files -->
+ <exclude>**/.travis.yml</exclude>
+ <exclude>**/.mvn/jvm.config</exclude>
+
<exclude>**/.mvn/wrapper/maven-wrapper.properties</exclude>
+ <!-- GitHub files -->
+ <exclude>**/.github/**</exclude>
+ <!-- document files -->
+ <exclude>**/*.md</exclude>
+ <excldue>**/*.MD</excldue>
+ <exclude>**/*.txt</exclude>
+ <exclude>**/docs/**</exclude>
+ <!-- UI files -->
+ <exclude>**/.babelrc</exclude>
+ <exclude>**/.editorconfig</exclude>
+ <exclude>**/.eslintignore</exclude>
+ <exclude>**/package.json</exclude>
+ <exclude>**/assets/**</exclude>
+ <exclude>**/dist/**</exclude>
+ <exclude>**/etc/**</exclude>
+ <exclude>**/node/**</exclude>
+ <exclude>**/node_modules/**</exclude>
+ <exclude>**/test/coverage/**</exclude>
+ <exclude>**/package-lock.json</exclude>
+ <!-- example files -->
+ <exclude>/examples/**</exclude>
+ <!-- to be determined -->
+ <exclude>**/AdminLTE/**</exclude>
+ <exclude>**/bootstrap/**</exclude>
+ <exclude>**/bootstrap-table/**</exclude>
+ <exclude>**/daterangepicker/**</exclude>
+ <exclude>**/font-awesome-4.5.0/**</exclude>
+ <exclude>**/input-mask/**</exclude>
+ <exclude>**/finput-mask/**</exclude>
+ <exclude>**/jquery/**</exclude>
+ <exclude>**/jQuery/**</exclude>
+ <exclude>**/highcharts/**</exclude>
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>verify</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>${maven-checkstyle-plugin.version}</version>
+ <configuration>
+
<configLocation>src/resources/checkstyle.xml</configLocation>
+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
+ </configuration>
+ <executions>
+ <execution>
+ <id>validate</id>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>validate</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.diffplug.spotless</groupId>
+ <artifactId>spotless-maven-plugin</artifactId>
+ <version>${spotless-maven-plugin.version}</version>
+ <configuration>
+ <java>
+ <eclipse>
+ <!--suppress MavenModelInspection -->
+
<file>${maven.multiModuleProjectDirectory}/src/resources/spotless/java.xml</file>
+ </eclipse>
+ <licenseHeader>
+ <!--suppress MavenModelInspection -->
+
<file>${maven.multiModuleProjectDirectory}/src/resources/spotless/copyright.txt</file>
+ </licenseHeader>
+ </java>
+ <pom>
+ <sortPom>
+ <encoding>UTF-8</encoding>
+ <nrOfIndentSpace>4</nrOfIndentSpace>
+ <keepBlankLines>true</keepBlankLines>
+ <indentBlankLines>true</indentBlankLines>
+
<indentSchemaLocation>false</indentSchemaLocation>
+
<spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
+ <sortModules>false</sortModules>
+ <sortExecutions>false</sortExecutions>
+
<predefinedSortOrder>custom_1</predefinedSortOrder>
+
<expandEmptyElements>false</expandEmptyElements>
+ <sortProperties>false</sortProperties>
+ </sortPom>
+ <replace>
+ <name>Leading blank line</name>
+ <search>-->
+ <project</search>
+ <replacement>-->
+
+ <project</replacement>
+ </replace>
+ </pom>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>