This is an automated email from the ASF dual-hosted git repository. kunni pushed a commit to branch build-release in repository https://gitbox.apache.org/repos/asf/flink-cdc.git
commit 9eede3d54383d2d075bd3e223738d6f996440c82 Author: kunni <[email protected]> AuthorDate: Tue Sep 23 11:46:43 2025 +0800 [build] Automate property replacement in pom.xml and exclude the release directory from license checks. --- 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}"
