This is an automated email from the ASF dual-hosted git repository. ppkarwasz pushed a commit to branch feat/logging-parent-migration2 in repository https://gitbox.apache.org/repos/asf/logging-flume.git
commit 2a076c60878a0fd08f8577a27c5790c25d975ab4 Author: Piotr P. Karwasz <[email protected]> AuthorDate: Fri Jul 24 14:14:22 2026 +0200 Configure RAT exclusions via `.rat-excludes` The file is shared with the ASF Trusted Releases platform checks, which match patterns against the archive root: hence the `**/` prefix. Files that support comments get an SPDX header instead of an exclusion. Assisted-By: Claude Fable 5 <[email protected]> --- .rat-excludes | 2 ++ .../src/test/resources/test.sh | 1 + .../src/test/resources/test_error.sh | 2 ++ ...org.apache.flume.instrumentation.MonitorService | 1 + ...org.apache.flume.instrumentation.MonitorService | 1 + ...org.apache.flume.instrumentation.MonitorService | 1 + flume-parent/pom.xml | 22 +++++++++++++++++++ pom.xml | 25 ++++++++++++++++++++++ 8 files changed, 55 insertions(+) diff --git a/.rat-excludes b/.rat-excludes new file mode 100644 index 00000000..30101469 --- /dev/null +++ b/.rat-excludes @@ -0,0 +1,2 @@ +.rat-excludes +**/src/test/resources/test_command.ps1 \ No newline at end of file diff --git a/flume-ng-configfilters/flume-ng-external-process-config-filter/src/test/resources/test.sh b/flume-ng-configfilters/flume-ng-external-process-config-filter/src/test/resources/test.sh index 4ebd83b1..c7f41d4c 100644 --- a/flume-ng-configfilters/flume-ng-external-process-config-filter/src/test/resources/test.sh +++ b/flume-ng-configfilters/flume-ng-external-process-config-filter/src/test/resources/test.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 if [ $1 = "my_password_key" ]; then echo "filtered"; diff --git a/flume-ng-configfilters/flume-ng-external-process-config-filter/src/test/resources/test_error.sh b/flume-ng-configfilters/flume-ng-external-process-config-filter/src/test/resources/test_error.sh index 2213ac2f..7f3a5b13 100644 --- a/flume-ng-configfilters/flume-ng-external-process-config-filter/src/test/resources/test_error.sh +++ b/flume-ng-configfilters/flume-ng-external-process-config-filter/src/test/resources/test_error.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + echo "Error message from stderr" 1>&2 echo "Error message from stdout" diff --git a/flume-ng-instrumentation/flume-ganglia-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService b/flume-ng-instrumentation/flume-ganglia-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService index bacdb80d..ca6ac4a3 100644 --- a/flume-ng-instrumentation/flume-ganglia-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService +++ b/flume-ng-instrumentation/flume-ganglia-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService @@ -1 +1,2 @@ +# SPDX-License-Identifier: Apache-2.0 org.apache.flume.instrumentation.ganglia.GangliaServer diff --git a/flume-ng-instrumentation/flume-http-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService b/flume-ng-instrumentation/flume-http-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService index 94fc8860..d29ea554 100644 --- a/flume-ng-instrumentation/flume-http-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService +++ b/flume-ng-instrumentation/flume-http-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService @@ -1 +1,2 @@ +# SPDX-License-Identifier: Apache-2.0 org.apache.flume.instrumentation.http.HTTPMetricsServer diff --git a/flume-ng-instrumentation/flume-prometheus-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService b/flume-ng-instrumentation/flume-prometheus-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService index 042e1082..fcfbfba8 100644 --- a/flume-ng-instrumentation/flume-prometheus-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService +++ b/flume-ng-instrumentation/flume-prometheus-monitor/src/main/resources/META-INF/services/org.apache.flume.instrumentation.MonitorService @@ -1 +1,2 @@ +# SPDX-License-Identifier: Apache-2.0 org.apache.flume.instrumentation.prometheus.PrometheusHTTPMetricsServer diff --git a/flume-parent/pom.xml b/flume-parent/pom.xml index 8aa25571..11cef894 100644 --- a/flume-parent/pom.xml +++ b/flume-parent/pom.xml @@ -413,6 +413,28 @@ <profiles> + <!-- Read additional RAT exclusions from a `.rat-excludes` file at the root of the repository, if present. + Guarded by a profile, since the plugin fails if `excludesFile` points to a missing file. --> + <profile> + <id>rat-excludes-file</id> + <activation> + <file> + <exists>${maven.multiModuleProjectDirectory}/.rat-excludes</exists> + </file> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludesFile>${maven.multiModuleProjectDirectory}/.rat-excludes</excludesFile> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> <id>skipChecks</id> <properties> diff --git a/pom.xml b/pom.xml index a943877f..fb0c5683 100644 --- a/pom.xml +++ b/pom.xml @@ -113,4 +113,29 @@ <maven.deploy.skip>true</maven.deploy.skip> </properties> + <profiles> + + <!-- Read additional RAT exclusions from the `.rat-excludes` file at the root of the repository, if present. + The code modules inherit the same profile from `flume-parent`, but this aggregator does not. --> + <profile> + <id>rat-excludes-file</id> + <activation> + <file> + <exists>${maven.multiModuleProjectDirectory}/.rat-excludes</exists> + </file> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludesFile>${maven.multiModuleProjectDirectory}/.rat-excludes</excludesFile> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> + </project>
