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

forwardxu pushed a commit to branch release-0.12.1
in repository https://gitbox.apache.org/repos/asf/hudi.git

commit 79abc24265debcd0ce4a57adbd1ca33e8591d1a4
Author: XuQianJin-Stars <forwar...@apache.com>
AuthorDate: Thu Dec 15 16:45:05 2022 +0800

    improve checkstyle
---
 dev/tencent-install.sh |  5 +++--
 dev/tencent-release.sh |  1 +
 pom.xml                | 10 ++++++++++
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dev/tencent-install.sh b/dev/tencent-install.sh
index 1e34f40440..173ca06671 100644
--- a/dev/tencent-install.sh
+++ b/dev/tencent-install.sh
@@ -40,6 +40,7 @@ echo "Preparing source for $tagrc"
 # change version
 echo "Change version for ${version}"
 mvn versions:set -DnewVersion=${version} -DgenerateBackupPom=false -s 
dev/settings.xml -U
+mvn -N versions:update-child-modules
 mvn versions:commit -s dev/settings.xml -U
 
 function git_push() {
@@ -118,9 +119,9 @@ function deploy_spark() {
   FLINK_VERSION=$3
 
   if [ ${release_repo} = "Y" ]; then
-    COMMON_OPTIONS="-Dscala-${SCALA_VERSION} -Dspark${SPARK_VERSION} 
-Dflink${FLINK_VERSION} -DskipTests -s dev/settings.xml 
-DretryFailedDeploymentCount=30 -T 2.5C"
+    COMMON_OPTIONS="-Dscala-${SCALA_VERSION} -Dspark${SPARK_VERSION} 
-Dflink${FLINK_VERSION} -DskipTests -Dcheckstyle.skip=true 
-Dscalastyle.skip=true -s dev/settings.xml -DretryFailedDeploymentCount=30 -T 
2.5C"
   else
-    COMMON_OPTIONS="-Dscala-${SCALA_VERSION} -Dspark${SPARK_VERSION} 
-Dflink${FLINK_VERSION} -DskipTests -s dev/settings.xml 
-DretryFailedDeploymentCount=30 -T 2.5C"
+    COMMON_OPTIONS="-Dscala-${SCALA_VERSION} -Dspark${SPARK_VERSION} 
-Dflink${FLINK_VERSION} -DskipTests -Dcheckstyle.skip=true 
-Dscalastyle.skip=true -s dev/settings.xml -DretryFailedDeploymentCount=30 -T 
2.5C"
   fi
 
   #  INSTALL_OPTIONS="-U -Drat.skip=true -Djacoco.skip=true 
-Dscala-${SCALA_VERSION} -Dspark${SPARK_VERSION} -DskipTests -s 
dev/settings.xml -T 2.5C"
diff --git a/dev/tencent-release.sh b/dev/tencent-release.sh
index b788d62dc7..54631f5c0f 100644
--- a/dev/tencent-release.sh
+++ b/dev/tencent-release.sh
@@ -40,6 +40,7 @@ echo "Preparing source for $tagrc"
 # change version
 echo "Change version for ${version}"
 mvn versions:set -DnewVersion=${version} -DgenerateBackupPom=false -s 
dev/settings.xml -U
+mvn -N versions:update-child-modules
 mvn versions:commit -s dev/settings.xml -U
 
 # create version.txt for this release
diff --git a/pom.xml b/pom.xml
index 01be2c1f89..230b338df6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -583,6 +583,16 @@
             </execution>
           </executions>
         </plugin>
+
+        <!-- One-click update submodule version number -->
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>versions-maven-plugin</artifactId>
+          <version>2.7</version>
+          <configuration>
+            <generateBackupPoms>false</generateBackupPoms>
+          </configuration>
+        </plugin>
       </plugins>
     </pluginManagement>
   </build>

Reply via email to