From 86c1a998bc66566f93eb7b55753d96287b78898a Mon Sep 17 00:00:00 2001 From: Zihan Dai <1436286758@qq.com> Date: Mon, 19 Oct 2026 22:58:29 +1100 Subject: [PATCH] Exclude the generated Grafana plugin config from the RAT check The grafana-plugin module keeps the .config directory generated by @grafana/create-plugin, plus .nvmrc and an empty .gitkeep. None of them has a license header, so `mvn verify -Pwith-grafana-plugin` fails the license-check execution with 22 unapproved files. CI only runs `package` for this module, so the check never ran there. Exclude those files in the module's RAT configuration and record the generated config in LICENSE. Signed-off-by: Zihan Dai <1436286758@qq.com> --- LICENSE | 5 +++++ connectors/grafana-plugin/pom.xml | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/LICENSE b/LICENSE index b7b9032c..d986094e 100644 --- a/LICENSE +++ b/LICENSE @@ -210,3 +210,8 @@ which is under Apache License 2.0: mvnw files from https://github.com/apache/maven-wrapper Apache 2.0 -------------------------------------------------------------------------------- + +The files in connectors/grafana-plugin/.config are generated by @grafana/create-plugin +(https://github.com/grafana/plugin-tools), which is under Apache License 2.0. + +-------------------------------------------------------------------------------- diff --git a/connectors/grafana-plugin/pom.xml b/connectors/grafana-plugin/pom.xml index 077d3a41..4a4b1b7a 100644 --- a/connectors/grafana-plugin/pom.xml +++ b/connectors/grafana-plugin/pom.xml @@ -88,6 +88,19 @@ + + org.apache.rat + apache-rat-plugin + + + + .config/** + + .nvmrc + provisioning/datasources/.gitkeep + + + org.apache.maven.plugins maven-antrun-plugin