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

lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 277835a65dd [improve][build] Skip top level hidden directories from 
license check and add instructions about AI tool directories (#24614)
277835a65dd is described below

commit 277835a65dd586de941b7d0ad448843b7b5589a4
Author: Lari Hotari <lhot...@users.noreply.github.com>
AuthorDate: Mon Aug 11 11:14:03 2025 +0300

    [improve][build] Skip top level hidden directories from license check and 
add instructions about AI tool directories (#24614)
---
 .gitignore | 5 +++++
 pom.xml    | 8 +++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index c8f17c2d960..a92fc207820 100644
--- a/.gitignore
+++ b/.gitignore
@@ -104,3 +104,8 @@ effective-pom.xml
 
 # AI Tools
 CLAUDE.md
+# There's no need to add all AI tool directories/files to the project's 
.gitignore file.
+# AI tool directories/files can be ignored from git by using a global 
gitignore file defined with
+# "git config --global core.excludesfile $HOME/.gitignore_global"
+# and adding the AI tool directories/files to the ~/.gitignore_global file 
without modifying the
+# project's .gitignore file.
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index e819cbcf6e9..a61ca8e67fd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -330,7 +330,7 @@ flexible messaging model and an intuitive client 
API.</description>
     <!-- Plugin dependencies -->
     <protobuf-maven-plugin.version>0.6.1</protobuf-maven-plugin.version>
     <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
-    <license-maven-plugin.version>4.1</license-maven-plugin.version>
+    <license-maven-plugin.version>5.0.0</license-maven-plugin.version>
     <directory-maven-plugin.version>1.0</directory-maven-plugin.version>
     <maven-enforcer-plugin.version>3.3.0</maven-enforcer-plugin.version>
     <!-- surefire.version is defined in apache parent pom -->
@@ -1998,6 +1998,12 @@ flexible messaging model and an intuitive client 
API.</description>
                 <exclude>**/zk-3.5-test-data/*</exclude>
                 <exclude>**/*_pb2.py</exclude>
                 <exclude>**/*_pb2_grpc.py</exclude>
+                <!--
+                Exclude any files from license checks that are in hidden 
directories (name starting with ".")
+                at the top level. This helps exclude directories used by AI 
tools
+                while preserving license checks in subdirectories.
+                -->
+                <exclude>.*/**</exclude>
               </excludes>
             </licenseSet>
           </licenseSets>

Reply via email to