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

kunni pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-cdc.git


The following commit(s) were added to refs/heads/master by this push:
     new 3fb72cc49 [build] Automate property replacement in pom.xml and exclude 
the release directory from license checks. (#4134)
3fb72cc49 is described below

commit 3fb72cc49a6f33eb5eedd8102e0a85ff31e98866
Author: Kunni <[email protected]>
AuthorDate: Tue Sep 23 14:56:20 2025 +0800

    [build] Automate property replacement in pom.xml and exclude the release 
directory from license checks. (#4134)
---
 pom.xml                                  | 12 ++++++++++++
 tools/releasing/update_branch_version.sh |  1 +
 2 files changed, 13 insertions(+)

diff --git a/pom.xml b/pom.xml
index c98541ffc..0d9b53d7c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -421,6 +421,8 @@ limitations under the License.
                     </licenseFamilies>
                     <excludes>
                         <!-- Additional files like .gitignore etc.-->
+                        <!-- Release files -->
+                        <exclude>**/release/**</exclude>
                         <exclude>**/README.md</exclude>
                         <exclude>**/.*/**</exclude>
                         <!-- Generated content -->
@@ -676,6 +678,16 @@ limitations under the License.
                     <target>${maven.compiler.target}</target>
                 </configuration>
             </plugin>
+
+            <!-- Allow modification of pom.xml properties using Maven 
commands. -->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>versions-maven-plugin</artifactId>
+                <version>2.5</version>
+                <configuration>
+                    <generateBackupPoms>false</generateBackupPoms>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 
diff --git a/tools/releasing/update_branch_version.sh 
b/tools/releasing/update_branch_version.sh
index 1f5e8cfd2..7cfcc1d01 100755
--- a/tools/releasing/update_branch_version.sh
+++ b/tools/releasing/update_branch_version.sh
@@ -52,6 +52,7 @@ cd ${PROJECT_ROOT}
 
 # change version in all pom files
 mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${NEW_VERSION}
+mvn versions:set-property -Dproperty=revision -DnewVersion=${NEW_VERSION}
 
 git commit -am "[release] Update version to ${NEW_VERSION}"
 

Reply via email to