This is an automated email from the ASF dual-hosted git repository.
tkobayas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git
The following commit(s) were added to refs/heads/main by this push:
new b9e069a25a [incubator-kie-issues-1613] Add .rat-excludes file to each
repository (#6149)
b9e069a25a is described below
commit b9e069a25a914a138deb29c928da74facd079f91
Author: Toshiya Kobayashi <[email protected]>
AuthorDate: Thu Nov 14 14:45:24 2024 +0900
[incubator-kie-issues-1613] Add .rat-excludes file to each repository
(#6149)
* [incubator-kie-issues-1613] Add .rat-excludes file to each repository
* removing apache-rat-plugin as we can check it with command line
---
.gitignore => .github/workflows/pr-rat-check.yml | 36 +++++++++--------
.gitignore | 1 +
.rat-excludes | 41 ++++++++++++++++++++
NOTICE | 4 ++
NOTICE-BINARY | 8 +++-
.../drools-test-coverage-jars/README.md | 19 +++++++++
.../valid_models/DMNv1_5/MultipleHitRules.dmn | 18 +++++++++
.../valid_models/DMNv1_5/RiskScore_Conditional.dmn | 18 +++++++++
.../valid_models/DMNv1_5/RiskScore_Simple.dmn | 18 +++++++++
pom.xml | 45 ----------------------
10 files changed, 146 insertions(+), 62 deletions(-)
diff --git a/.gitignore b/.github/workflows/pr-rat-check.yml
similarity index 55%
copy from .gitignore
copy to .github/workflows/pr-rat-check.yml
index dfa69a393a..f1324311e5 100644
--- a/.gitignore
+++ b/.github/workflows/pr-rat-check.yml
@@ -1,3 +1,4 @@
+#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
@@ -14,23 +15,26 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+#
+
+name: Run Apache RAT check
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
-target/
-local/
+jobs:
+ apache-rat-check:
+ runs-on: ubuntu-latest
-# Eclipse, Netbeans and IntelliJ files
-.*
-!.gitignore
-!.github
-!.git-blame-ignore-revs
-!.openrewrite
-nbproject
-*.ipr
-*.iws
-*.iml
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
-# generated files
-dependency-reduced-pom.xml
+ - name: Download Apache RAT
+ run: |
+ curl -LO
https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.16.1/apache-rat-0.16.1.jar
-#CI
-!.ci
+ - name: Run Apache RAT
+ run: |
+ java -jar apache-rat-0.16.1.jar -d . -E .rat-excludes | grep "==
File:" && echo "The files listed above are missing license headers." && exit 1
|| echo "All files have license headers."
diff --git a/.gitignore b/.gitignore
index dfa69a393a..655baabbb2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,6 +24,7 @@ local/
!.github
!.git-blame-ignore-revs
!.openrewrite
+!.rat-excludes
nbproject
*.ipr
*.iws
diff --git a/.rat-excludes b/.rat-excludes
new file mode 100644
index 0000000000..cc9dced25b
--- /dev/null
+++ b/.rat-excludes
@@ -0,0 +1,41 @@
+\.rat-excludes
+\.gitignore
+DISCLAIMER-WIP
+ui-bundle\.zip
+\.git-blame-ignore-revs
+dependency-reduced-pom\.xml
+lunr-2\.3\.9\.min\.js
+search-ui\.js
+branch\.yaml
+main\.yaml
+mvel\.jj
+JavaLexer\.g4
+JavaParser\.g4
+.*\.csv
+.*\.sdo
+.*\.sdt
+TestingEmptyFile\.txt
+.*\.test_json
+.*\.pmml_json
+.*\.drl_json
+.*\.dslr
+DMN.*\.xsd
+DC\.xsd
+DI\.xsd
+KiePMML.*\.txt
+TargetValueFactoryTest_01\.txt
+TargetFieldFactoryTest_01\.txt
+.*\.uml
+drools-model
+testFile\.txt
+simple\.dot
+.*\.log
+.*\.lst
+checkstyle-cachefile
+test.*\.txt
+test.*\.yml
+drl\.ftl
+goal\.txt
+adult\.txt
+antora\.yml
+.*\.iml
\ No newline at end of file
diff --git a/NOTICE b/NOTICE
index 646a3d4ae0..ca80f76b0c 100644
--- a/NOTICE
+++ b/NOTICE
@@ -22,6 +22,10 @@ This product also includes the following third-party
components:
Downloaded from: https://gitlab.com/antora/antora-lunr-extension
License: Mozilla Public License 2.0
+* antora ui-bundle
+ Downloaded from: https://github.com/stephengold/antora-ui-bundle
+ License: Mozilla Public License 2.0
+
* JavaParser, JavaLexer
Downloaded from: https://github.com/antlr/grammars-v4/tree/master/java/java
License: BSD License
\ No newline at end of file
diff --git a/NOTICE-BINARY b/NOTICE-BINARY
index 958dc62a49..31b997e9d9 100644
--- a/NOTICE-BINARY
+++ b/NOTICE-BINARY
@@ -25,4 +25,10 @@
efesto/efesto-core/efesto-common-api/src/test/resources/TestJar.jar : a compress
efesto/efesto-core/efesto-common-core/src/test/resources/TestJar.jar : a
compressed JSON file for test
efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/resources/TestJar.jar
: a compressed JSON file for test
-These files are used to validate the functionality and reliability of Apache
KIE. They are not intended for production use or distribution beyond the scope
of testing within this project.
\ No newline at end of file
+These files are used to validate the functionality and reliability of Apache
KIE. They are not intended for production use or distribution beyond the scope
of testing within this project.
+
+## Disclaimer for non-compiled resources Binaries
+
+The following binaries are included in this project, but don't contain
compiled resources.
+
+drools-docs/ui-bundle/ui-bundle.zip : antora ui-bundle resources. For example,
js and svg. See NOTICE file
\ No newline at end of file
diff --git a/drools-test-coverage/drools-test-coverage-jars/README.md
b/drools-test-coverage/drools-test-coverage-jars/README.md
index b3a0d19167..195a5f7d59 100644
--- a/drools-test-coverage/drools-test-coverage-jars/README.md
+++ b/drools-test-coverage/drools-test-coverage-jars/README.md
@@ -1,3 +1,22 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (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
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
+
## drools-test-coverage-jars
This project is to build jars that are used in `drools-test-coverage` project.
So we can avoid having jar binaries in the codebase.
diff --git
a/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/MultipleHitRules.dmn
b/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/MultipleHitRules.dmn
index b01f79264a..11f5b808f5 100644
---
a/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/MultipleHitRules.dmn
+++
b/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/MultipleHitRules.dmn
@@ -1,4 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
+ <!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (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
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
<definitions xmlns="https://www.omg.org/spec/DMN/20230324/MODEL/"
expressionLanguage="https://www.omg.org/spec/DMN/20230324/FEEL/"
namespace="https://kie.org/dmn/_0F4F765C-8EB4-49EA-B0B7-1708350D85CB"
id="_519DCACD-D3C7-4B4A-ABA9-862C791F1B50"
name="DMN_38D7FBBB-9C00-411D-A3A9-FE7E52F1728B"
xmlns:dmndi="https://www.omg.org/spec/DMN/20230324/DMNDI/"
xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/"
xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
xmlns:kie="https://kie.org/dmn/extens [...]
<itemDefinition id="_AA6B29A0-E5BF-4D8D-873A-E68F6E5E8388" name="tNumbers"
isCollection="true" typeLanguage="https://www.omg.org/spec/DMN/20230324/FEEL/">
<description></description>
diff --git
a/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/RiskScore_Conditional.dmn
b/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/RiskScore_Conditional.dmn
index a4816f968d..d99df9eb17 100644
---
a/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/RiskScore_Conditional.dmn
+++
b/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/RiskScore_Conditional.dmn
@@ -1,4 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
+ <!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (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
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
<definitions xmlns="https://www.omg.org/spec/DMN/20230324/MODEL/"
xmlns:dmndi="https://www.omg.org/spec/DMN/20230324/DMNDI/"
xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/"
xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
xmlns:kie="https://kie.org/dmn/extensions/1.0"
expressionLanguage="https://www.omg.org/spec/DMN/20230324/FEEL/"
namespace="https://kie.org/dmn/_A3317FB1-7BF8-4904-A5F4-2CD63AF3AFD0"
id="_49F637EB-0176-4A4A-9E4A-CBE3A969732F" name="Risk Score Conditional">
<itemDefinition id="_0AB24AFF-A3D9-4BA5-82BC-F7850560A7E7" name="Region"
isCollection="false" typeLanguage="https://www.omg.org/spec/DMN/20230324/FEEL/">
<typeRef>string</typeRef>
diff --git
a/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/RiskScore_Simple.dmn
b/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/RiskScore_Simple.dmn
index ea0d40e36a..e3ae94ef54 100644
---
a/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/RiskScore_Simple.dmn
+++
b/kie-dmn/kie-dmn-test-resources/src/test/resources/valid_models/DMNv1_5/RiskScore_Simple.dmn
@@ -1,4 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
+ <!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (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
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
<definitions xmlns="https://www.omg.org/spec/DMN/20230324/MODEL/"
xmlns:dmndi="https://www.omg.org/spec/DMN/20230324/DMNDI/"
xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/"
xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
xmlns:kie="https://kie.org/dmn/extensions/1.0"
expressionLanguage="https://www.omg.org/spec/DMN/20230324/FEEL/"
namespace="https://kie.org/dmn/_A3317FB1-7BF8-4904-A5F4-2CD63AF3AEC9"
id="_49F637EB-0176-4A4A-9E4A-CBE3A969721E"
name="DMN_A77074C1-21FE-4F7E-9753-F846 [...]
<itemDefinition id="_77090217-FF01-45CD-A561-C96D420D407A" name="Credit
Score Rating" isCollection="false"
typeLanguage="https://www.omg.org/spec/DMN/20230324/FEEL/">
<typeRef>string</typeRef>
diff --git a/pom.xml b/pom.xml
index 82960af5a9..f70775153d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -115,7 +115,6 @@
<properties>
<project.build.outputTimestamp>2024-01-12T00:00:00Z</project.build.outputTimestamp>
<version.maven.artifact.plugin>3.4.1</version.maven.artifact.plugin>
- <version.apache-rat-plugin>0.16.1</version.apache-rat-plugin>
</properties>
<build>
@@ -129,50 +128,6 @@
<outputTimestamp>${project.build.outputTimestamp}</outputTimestamp>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.rat</groupId>
- <artifactId>apache-rat-plugin</artifactId>
- <version>${version.apache-rat-plugin}</version>
- <configuration>
- <excludes>
- <exclude>.git-blame-ignore-revs</exclude>
- <exclude>**/dependency-reduced-pom.xml</exclude>
- <exclude>**/lunr-2.3.9.min.js</exclude>
- <exclude>**/search-ui.js</exclude>
- <exclude>**/branch.yaml</exclude>
- <exclude>**/main.yaml</exclude>
- <exclude>**/mvel.jj</exclude>
- <exclude>**/JavaLexer.g4</exclude>
- <exclude>**/JavaParser.g4</exclude>
- <exclude>**/*.csv</exclude>
- <exclude>**/*.sdo</exclude>
- <exclude>**/*.sdt</exclude>
- <exclude>**/TestingEmptyFile.txt</exclude>
- <exclude>**/*.test_json</exclude>
- <exclude>**/*.pmml_json</exclude>
- <exclude>**/*.drl_json</exclude>
- <exclude>**/*.dslr</exclude>
- <exclude>**/DMN*.xsd</exclude>
- <exclude>**/DC.xsd</exclude>
- <exclude>**/DI.xsd</exclude>
- <exclude>**/KiePMML*.txt</exclude>
- <exclude>**/TargetValueFactoryTest_01.txt</exclude>
- <exclude>**/TargetFieldFactoryTest_01.txt</exclude>
- <exclude>**/*.uml</exclude>
- <exclude>**/drools-model</exclude>
- <exclude>**/testFile.txt</exclude>
- <exclude>**/simple.dot</exclude>
- <exclude>**/*.log</exclude>
- <exclude>**/*.lst</exclude>
- <exclude>**/checkstyle-cachefile</exclude>
- <exclude>**/test*.txt</exclude>
- <exclude>**/test*.yml</exclude>
- <exclude>**/drl.ftl</exclude>
- <exclude>**/goal.txt</exclude>
- <exclude>**/adult.txt</exclude>
- </excludes>
- </configuration>
- </plugin>
</plugins>
</pluginManagement>
</build>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]