You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sourcelume.apache.org by an...@apache.org on 2026/10/03 13:24:58 UTC

(sourcelume-registry) 02/07: Enforce license headers with Apache RAT

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

ANierbeck pushed a commit to branch ci
in repository https://gitbox.apache.org/repos/asf/sourcelume-registry.git

commit 903a63619259485c02ff5e31728bfaf6c5bb8ceb
Author: anierbeck <ac...@codecentric.de>
AuthorDate: Sat Oct 3 14:16:20 2026 +0200

    Enforce license headers with Apache RAT
    
    The Apache parent only runs RAT in the apache-release profile; binding
    the check to the validate phase makes every `mvn verify` (and the CI)
    fail on missing ASF headers. As in sourcelume-spec, READMEs carry an
    'Apache License, Version 2.0' footer instead of a comment header;
    dev-support/README.md had no license mention at all and gets the same
    footer. JSON resources are classified as binaries by RAT and need no
    excludes.
    
    Apache-ai: Yes
    Generated-by: pi (claude-bridge/claude-opus-5-5)
    Reviewed-by: anierbeck
---
 dev-support/README.md |  4 ++++
 pom.xml               | 21 +++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/dev-support/README.md b/dev-support/README.md
index 6e5f397..fc58e91 100644
--- a/dev-support/README.md
+++ b/dev-support/README.md
@@ -234,3 +234,7 @@ docker compose down
 cd dev-support/vendor/atlas-docker
 docker compose -f docker-compose.atlas.yml down
 ```
+
+## License
+
+This project is licensed under [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
diff --git a/pom.xml b/pom.xml
index f20fd97..f848e3e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -152,6 +152,27 @@
                 </plugin>
             </plugins>
         </pluginManagement>
+
+        <plugins>
+            <!--
+                RAT enforces ASF license headers on every build. The Apache
+                parent only runs it in the apache-release profile; binding it
+                here makes `mvn verify` (and CI) fail on missing headers.
+            -->
+            <plugin>
+                <groupId>org.apache.rat</groupId>
+                <artifactId>apache-rat-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>rat-check</id>
+                        <goals>
+                            <goal>check</goal>
+                        </goals>
+                        <phase>validate</phase>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
     </build>
 
 </project>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@sourcelume.apache.org
For additional commands, e-mail: commits-help@sourcelume.apache.org