From ab207c4d817681dd6d9d38fca90237223dd38541 Mon Sep 17 00:00:00 2001 From: Ryan Schmitt Date: Fri, 9 Jan 2026 10:17:27 -0800 Subject: [PATCH] Upgrade Apache RAT During local development, I'm regularly annoyed by spurious RAT failures. While RAT does have some limitations -- for example, because it never shells out to `git`, it can't ignore untracked files -- newer versions do have improved support for `.gitignore` files, including the global gitignore file when present at `~/.config/git/ignore` (the default location). Additionally, the default exclusions have been improved, so we no longer need quite as much manual configuration. Specific changes: 1. Bumped `apache-rat-plugin` directly to 0.17. (In the version of the Apache parent POM we are using, there is no property we can override to do this.) 2. Removed exclusions that are obsolete or covered by our defaults. 3. Changed `apache-rat:check` to only run in `:httpclient5-parent`, instead of separately validating each subproject. 4. Changed `` to `` as the former is now deprecated. --- pom.xml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 005441011c..0a32b012de 100644 --- a/pom.xml +++ b/pom.xml @@ -384,25 +384,24 @@ org.apache.rat apache-rat-plugin + 0.17 verify + false check - - - src/docbkx/resources/** - src/test/resources/*.truststore - src/test/resources/*.serialized - .checkstyle - .externalToolBuilders/** - maven-eclipse.xml - **/serial - **/index.txt - + + false + + **/*.pem + **/index.txt + **/serial + **/effective_tld_names.dat + @@ -538,4 +537,4 @@ - \ No newline at end of file +