Skip to content

Commit 6cdfea4

Browse files
wolfboysbenjobs
and
benjobs
authored
[Feature] Add apache-rat-plugin support (apache#3443)
* [Feature] apache-rat-plugin support * [Improve] license header minor improvement --------- Co-authored-by: benjobs <[email protected]>
1 parent 2dba07d commit 6cdfea4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+109
-47
lines changed

.asf.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

.git-blame-ignore-revs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

.github/workflows/maven.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

.github/workflows/pull-request-robot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

.licenserc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

.mvn/wrapper/maven-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

.scalafmt-fp.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

deploy/docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

deploy/helm/streampark/conf/streampark-console-config/ValidationMessages.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

deploy/helm/streampark/conf/streampark-console-config/application-h2.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

deploy/helm/streampark/conf/streampark-console-config/application-mysql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

deploy/helm/streampark/conf/streampark-console-config/application-pgsql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

deploy/helm/streampark/conf/streampark-console-config/application-sso.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

deploy/helm/streampark/conf/streampark-console-config/application.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

deploy/helm/streampark/conf/streampark-console-config/kerberos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

deploy/helm/streampark/conf/streampark-console-config/spy.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

mvnw

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# "License"); you may not use this file except in compliance
99
# with the License. You may obtain a copy of the License at
1010
#
11-
# https://www.apache.org/licenses/LICENSE-2.0
11+
# http://www.apache.org/licenses/LICENSE-2.0
1212
#
1313
# Unless required by applicable law or agreed to in writing,
1414
# software distributed under the License is distributed on an

pom.xml

+62
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
<maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version>
136136
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
137137
<maven-spotless-plugin.version>2.27.2</maven-spotless-plugin.version>
138+
<maven-apache-rat-plugin.version>0.13</maven-apache-rat-plugin.version>
138139
<spotless.scalafmt.version>3.4.3</spotless.scalafmt.version>
139140
<maven-checkstyle-plugin.version>3.2.0</maven-checkstyle-plugin.version>
140141
<owasp-dependency-check-maven.version>8.2.1</owasp-dependency-check-maven.version>
@@ -793,6 +794,62 @@
793794
</execution>
794795
</executions>
795796
</plugin>
797+
798+
<!--mvn apache-rat:check-->
799+
<plugin>
800+
<groupId>org.apache.rat</groupId>
801+
<artifactId>apache-rat-plugin</artifactId>
802+
<version>${maven-apache-rat-plugin.version}</version>
803+
<configuration>
804+
<excludes>
805+
<exclude>.asf.yaml</exclude>
806+
<exclude>.git-blame-ignore-revs</exclude>
807+
<exclude>.editorconfig</exclude>
808+
<exclude>.git/</exclude>
809+
<exclude>.github/**</exclude>
810+
<exclude>.gitignore</exclude>
811+
<exclude>.licenserc.yaml</exclude>
812+
<exclude>.scalafmt.conf</exclude>
813+
814+
<exclude>**/.idea/</exclude>
815+
<exclude>**/*.iml</exclude>
816+
<exclude>**/*.txt</exclude>
817+
<exclude>**/*.json</exclude>
818+
<exclude>**/*.md</exclude>
819+
<exclude>**/*.log</exclude>
820+
<exclude>**/.gitkeep</exclude>
821+
<exclude>**/.settings/*</exclude>
822+
<exclude>**/.classpath</exclude>
823+
<exclude>**/.project</exclude>
824+
<exclude>**/target/**</exclude>
825+
<exclude>**/out/**</exclude>
826+
<exclude>**/META-INF/**</exclude>
827+
828+
<exclude>.mvn/**</exclude>
829+
<exclude>compiler/**</exclude>
830+
<exclude>dist-material/**</exclude>
831+
<exclude>deploy/**</exclude>
832+
<exclude>mvnw</exclude>
833+
<exclude>mvnw.cmd</exclude>
834+
<exclude>README.md</exclude>
835+
836+
<exclude>src/main/assembly/**</exclude>
837+
<exclude>src/main/resources/alert-template/**</exclude>
838+
<exclude>src/main/resources/*.dict</exclude>
839+
840+
<exclude>streampark-console-webapp/**</exclude>
841+
</excludes>
842+
</configuration>
843+
<executions>
844+
<execution>
845+
<id>rat-validate</id>
846+
<goals>
847+
<goal>check</goal>
848+
</goals>
849+
<phase>validate</phase>
850+
</execution>
851+
</executions>
852+
</plugin>
796853
</plugins>
797854
</pluginManagement>
798855

@@ -826,6 +883,11 @@
826883
<groupId>org.owasp</groupId>
827884
<artifactId>dependency-check-maven</artifactId>
828885
</plugin>
886+
887+
<plugin>
888+
<groupId>org.apache.rat</groupId>
889+
<artifactId>apache-rat-plugin</artifactId>
890+
</plugin>
829891
</plugins>
830892

831893
</build>

streampark-console/streampark-console-service/src/main/assembly/bin/mvnw

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# "License"); you may not use this file except in compliance
99
# with the License. You may obtain a copy of the License at
1010
#
11-
# https://www.apache.org/licenses/LICENSE-2.0
11+
# http://www.apache.org/licenses/LICENSE-2.0
1212
#
1313
# Unless required by applicable law or agreed to in writing,
1414
# software distributed under the License is distributed on an

streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/aspect/ConsoleAspect.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* (the "License"); you may not use this file except in compliance with
77
* the License. You may obtain a copy of the License at
88
*
9-
* https://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1010
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/main/resources/ValidationMessages.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/main/resources/application-h2.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/main/resources/application-mysql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/main/resources/application-pgsql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/main/resources/application-sso.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/main/resources/application.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/main/resources/flink-application.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/main/resources/kerberos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/main/resources/spy.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/test/resources/application-integration-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-service/src/test/resources/application-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (the "License"); you may not use this file except in compliance with
77
# the License. You may obtain a copy of the License at
88
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

streampark-console/streampark-console-webapp/.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# (the "License"); you may not use this file except in compliance with
66
# the License. You may obtain a copy of the License at
77
#
8-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
99
#
1010
# Unless required by applicable law or agreed to in writing, software
1111
# distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)