This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch apache-rat
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git

commit 5ce08f6ebc942b78880c81ea59b81f5f4ad104c1
Author: benjobs <[email protected]>
AuthorDate: Mon Dec 18 12:29:26 2023 +0800

    [Improve] apache-rat plugin support
---
 pom.xml | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 53 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index e3bfb67c5..0810a30f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
   ~ (the "License"); you may not use this file except in compliance with
   ~ the License.  You may obtain a copy of the License at
   ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~     https://www.apache.org/licenses/LICENSE-2.0
   ~
   ~ Unless required by applicable law or agreed to in writing, software
   ~ distributed under the License is distributed on an "AS IS" BASIS,
@@ -121,6 +121,7 @@
         <commons-lang3.version>3.8.1</commons-lang3.version>
         <enumeratum.version>1.6.1</enumeratum.version>
 
+        <apache-rat-plugin.version>0.13</apache-rat-plugin.version>
         <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
         <maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
         <scala-maven-plugin.version>4.7.1</scala-maven-plugin.version>
@@ -740,6 +741,52 @@
                         </execution>
                     </executions>
                 </plugin>
+
+                <!--mvn apache-rat:check-->
+                <plugin>
+                    <groupId>org.apache.rat</groupId>
+                    <artifactId>apache-rat-plugin</artifactId>
+                    <version>${apache-rat-plugin.version}</version>
+                    <configuration>
+                        <excludes>
+                            <exclude>.asf.yaml</exclude>
+                            <exclude>.git-blame-ignore-revs</exclude>
+                            <exclude>dist-material/**</exclude>
+                            <exclude>deploy/**</exclude>
+                            <exclude>**/.idea/</exclude>
+                            <exclude>**/*.iml</exclude>
+                            <exclude>**/*.txt</exclude>
+                            <exclude>**/*.json</exclude>
+                            <exclude>**/*.md</exclude>
+                            <exclude>.git/</exclude>
+                            <exclude>.gitignore</exclude>
+                            <exclude>**/.settings/*</exclude>
+                            <exclude>**/.classpath</exclude>
+                            <exclude>**/.project</exclude>
+                            <exclude>**/target/**</exclude>
+                            <exclude>**/out/**</exclude>
+                            <exclude>**/*.log</exclude>
+                            <exclude>README.md</exclude>
+                            <exclude>**/META-INF/**</exclude>
+                            <exclude>.github/**</exclude>
+                            <exclude>compiler/**</exclude>
+                            <exclude>.editorconfig</exclude>
+                            <exclude>mvnw</exclude>
+                            <exclude>mvnw.cmd</exclude>
+                            <exclude>.licenserc.yaml</exclude>
+                            <exclude>.scalafmt.conf</exclude>
+                        </excludes>
+                    </configuration>
+                    <executions>
+                        <execution>
+                            <id>rat-validate</id>
+                            <goals>
+                                <goal>check</goal>
+                            </goals>
+                            <phase>validate</phase>
+                        </execution>
+                    </executions>
+                </plugin>
             </plugins>
         </pluginManagement>
 
@@ -773,6 +820,11 @@
                 <groupId>org.owasp</groupId>
                 <artifactId>dependency-check-maven</artifactId>
             </plugin>
+
+            <plugin>
+                <groupId>org.apache.rat</groupId>
+                <artifactId>apache-rat-plugin</artifactId>
+            </plugin>
         </plugins>
 
     </build>

Reply via email to