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

zhangjiawei pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/incubator-seata.git


The following commit(s) were added to refs/heads/2.x by this push:
     new 1d4e81113b optimize: pin the Spring version for namingserver and 
console (#7930)
1d4e81113b is described below

commit 1d4e81113bc23197b883acbb62a19b74032d81fc
Author: funkye <[email protected]>
AuthorDate: Wed Jan 14 16:26:43 2026 +0800

    optimize: pin the Spring version for namingserver and console (#7930)
---
 .github/workflows/test-ubuntu.yml | 63 +++++++++++++++++++--------------------
 .github/workflows/test.yml        | 20 ++++++-------
 build/pom.xml                     |  2 +-
 changes/en-us/2.x.md              |  2 ++
 changes/zh-cn/2.x.md              |  3 ++
 console/pom.xml                   | 10 +++++++
 dependencies/pom.xml              |  2 +-
 namingserver/pom.xml              |  9 ++++++
 8 files changed, 66 insertions(+), 45 deletions(-)

diff --git a/.github/workflows/test-ubuntu.yml 
b/.github/workflows/test-ubuntu.yml
index 3a61284ded..f41847a3bf 100644
--- a/.github/workflows/test-ubuntu.yml
+++ b/.github/workflows/test-ubuntu.yml
@@ -47,12 +47,12 @@ jobs:
           ubuntu-24.04,
         ]
         springboot: [
-          2.7.18         -D spring-framework.version=5.3.31,
-          2.6.15         -D spring-framework.version=5.3.27,
-          2.5.15         -D spring-framework.version=5.3.27,
-          2.4.13         -D spring-framework.version=5.3.13,
-          2.3.12.RELEASE -D spring-framework.version=5.2.15.RELEASE,
-#          2.2.13.RELEASE -D spring-framework.version=5.2.12.RELEASE,
+          2.7.18         -D spring-framework-bom.version=5.3.31,
+          2.6.15         -D spring-framework-bom.version=5.3.27,
+          2.5.15         -D spring-framework-bom.version=5.3.27,
+          2.4.13         -D spring-framework-bom.version=5.3.13,
+          2.3.12.RELEASE -D spring-framework-bom.version=5.2.15.RELEASE,
+          #          2.2.13.RELEASE -D 
spring-framework-bom.version=5.2.12.RELEASE,
           #2.1.18.RELEASE,
           #2.0.9.RELEASE,
         ]
@@ -104,10 +104,10 @@ jobs:
           ubuntu-24.04,
         ]
         springboot: [
-          3.3.0  -D spring-framework.version=6.1.18 -D mockito.version=5.11.0 
-D junit-jupiter.version=5.10.2,
-          3.2.0  -D spring-framework.version=6.1.1  -D mockito.version=5.7.0  
-D junit-jupiter.version=5.10.1,
-          3.1.6  -D spring-framework.version=6.0.14 -D mockito.version=5.3.1  
-D junit-jupiter.version=5.9.3,
-          3.0.13 -D spring-framework.version=6.0.14,
+          3.3.0  -D spring-framework-bom.version=6.1.18 -D 
mockito.version=5.11.0 -D junit-jupiter.version=5.10.2,
+          3.2.0  -D spring-framework-bom.version=6.1.1  -D 
mockito.version=5.7.0  -D junit-jupiter.version=5.10.1,
+          3.1.6  -D spring-framework-bom.version=6.0.14 -D 
mockito.version=5.3.1  -D junit-jupiter.version=5.9.3,
+          3.0.13 -D spring-framework-bom.version=6.0.14,
         ]
     steps:
       # step 1
@@ -140,17 +140,17 @@ jobs:
   # job 3
   test-arm64:
     name: "test-arm64"
-    runs-on: ubuntu-24.04
+    runs-on: ubuntu-24.04-arm
     strategy:
       fail-fast: false
       matrix:
         springboot: [
-          #2.7.18         -Dspring-framework.version=5.3.31, # The 
maven-compiler-plugin will throw an error for an unknown reason.
-          #2.6.15         -Dspring-framework.version=5.3.27, # The 
maven-compiler-plugin will throw an error for an unknown reason.
-          #2.5.15         -Dspring-framework.version=5.3.27, # The 
maven-compiler-plugin will throw an error for an unknown reason.
-          2.4.13         -Dspring-framework.version=5.3.13,
-          2.3.12.RELEASE -Dspring-framework.version=5.2.15.RELEASE,
-          2.2.13.RELEASE -Dspring-framework.version=5.2.12.RELEASE,
+          2.7.18         -Dspring-framework-bom.version=5.3.31, # The 
maven-compiler-plugin will throw an error for an unknown reason.
+          2.6.15         -Dspring-framework-bom.version=5.3.27, # The 
maven-compiler-plugin will throw an error for an unknown reason.
+          2.5.15         -Dspring-framework-bom.version=5.3.27, # The 
maven-compiler-plugin will throw an error for an unknown reason.
+          2.4.13         -Dspring-framework-bom.version=5.3.13,
+          2.3.12.RELEASE -Dspring-framework-bom.version=5.2.15.RELEASE,
+          2.2.13.RELEASE -Dspring-framework-bom.version=5.2.12.RELEASE,
           #2.1.18.RELEASE,
           #2.0.9.RELEASE,
         ]
@@ -159,21 +159,18 @@ jobs:
       - name: "Checkout"
         uses: actions/checkout@v3
       # step 2
-      - name: "Set up QEMU"
-        id: qemu
-        uses: docker/setup-qemu-action@v3
+      - name: "Set up Java JDK 25"
+        uses: actions/[email protected]
+        with:
+          distribution: 'zulu'
+          java-version: 25
+      # step 4
+      - name: "Print maven version"
+        run: ./mvnw -version
       # step 3
-      - name: "Build with Maven on 'arm64v8/ubuntu:20.04' OS (Skip tests)"
+      - name: "Build with Maven on 'arm64v8/ubuntu:24.04' OS (Skip tests)"
         run: |
-          docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
-            --platform linux/arm64 arm64v8/ubuntu:20.04 \
-            bash -exc 'apt-get update -y && \
-                       apt-get install maven -y && \
-                       apt-get install -y python3 python3-pip 
python3-distutils && \
-                       apt-get install -y build-essential && \
-                       mvn -version && \
-                       mvn -T 4C clean install \
-                           -Dspring-boot.version=${{ matrix.springboot }} \
-                           -Prelease-seata \
-                           -DskipTests \
-                           -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
+          ./mvnw -T 4C clean install -Dspring-boot.version=${{ 
matrix.springboot }} \
+              -Prelease-seata \
+              -DskipTests \
+              -e -B 
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
\ No newline at end of file
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 295add3927..3004bee0dc 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -34,12 +34,12 @@ jobs:
           windows-2022, # Skip tests, because too many errors in unit-test.
         ]
         springboot: [
-          2.7.18         -D spring-framework.version=5.3.31,
-          2.6.15         -D spring-framework.version=5.3.27,
-          2.5.15         -D spring-framework.version=5.3.27,
-          2.4.13         -D spring-framework.version=5.3.13,
-          2.3.12.RELEASE -D spring-framework.version=5.2.15.RELEASE,
-#          2.2.13.RELEASE -D spring-framework.version=5.2.12.RELEASE,
+          2.7.18         -D spring-framework-bom.version=5.3.31,
+          2.6.15         -D spring-framework-bom.version=5.3.27,
+          2.5.15         -D spring-framework-bom.version=5.3.27,
+          2.4.13         -D spring-framework-bom.version=5.3.13,
+          2.3.12.RELEASE -D spring-framework-bom.version=5.2.15.RELEASE,
+#          2.2.13.RELEASE -D spring-framework-bom.version=5.2.12.RELEASE,
           #2.1.18.RELEASE,
           #2.0.9.RELEASE,
         ]
@@ -94,10 +94,10 @@ jobs:
           windows-2022, # Skip tests, because too many errors in unit-test.
         ]
         springboot: [
-          3.3.0  -D spring-framework.version=6.1.18 -D mockito.version=5.11.0 
-D junit-jupiter.version=5.10.2,
-          3.2.0  -D spring-framework.version=6.1.1  -D mockito.version=5.7.0  
-D junit-jupiter.version=5.10.1,
-          3.1.6  -D spring-framework.version=6.0.14 -D mockito.version=5.3.1  
-D junit-jupiter.version=5.9.3,
-          3.0.13 -D spring-framework.version=6.0.14,
+          3.3.0  -D spring-framework-bom.version=6.1.18 -D 
mockito.version=5.11.0 -D junit-jupiter.version=5.10.2,
+          3.2.0  -D spring-framework-bom.version=6.1.1  -D 
mockito.version=5.7.0  -D junit-jupiter.version=5.10.1,
+          3.1.6  -D spring-framework-bom.version=6.0.14 -D 
mockito.version=5.3.1  -D junit-jupiter.version=5.9.3,
+          3.0.13 -D spring-framework-bom.version=6.0.14,
         ]
     steps:
       # step 1
diff --git a/build/pom.xml b/build/pom.xml
index 4470109609..13a2eccc30 100644
--- a/build/pom.xml
+++ b/build/pom.xml
@@ -82,7 +82,7 @@
 
         <!-- The version of spring-boot for 'spring-boot-dependencies' and 
'spring-boot-maven-plugin' -->
         <spring-boot.version>2.7.18</spring-boot.version>
-        <spring-framework.version>5.3.39</spring-framework.version>
+        <spring-framework-bom.version>5.3.39</spring-framework-bom.version>
 
         <!--  server side dependency-->
         <kafka-appender.version>0.2.0-RC2</kafka-appender.version>
diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 28d074df56..369233c2b9 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -31,6 +31,7 @@ Add changes here for all PR submitted to the 2.x branch.
 
 ### optimize:
 
+- [[#7930](https://github.com/apache/incubator-seata/pull/7930)] pin the 
Spring version for namingserver and console
 
 ### security:
 
@@ -51,6 +52,7 @@ Thanks to these contributors for their code commits. Please 
report an unintended
 - [slievrly](https://github.com/slievrly)
 - [lokidundun](https://github.com/lokidundun)
 - [LegendPei](https://github.com/LegendPei)
+- [funky-eyes](https://github.com/funky-eyes)
 - [maple525866](https://github.com/maple525866)
 
 
diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md
index 22dbc3e332..1c9e423e9c 100644
--- a/changes/zh-cn/2.x.md
+++ b/changes/zh-cn/2.x.md
@@ -31,6 +31,8 @@
 
 ### optimize:
 
+- [[#7930](https://github.com/apache/incubator-seata/pull/7930)] 
固定namingserver和console的Spring版本
+
 
 ### security:
 
@@ -51,6 +53,7 @@
 - [slievrly](https://github.com/slievrly)
 - [lokidundun](https://github.com/lokidundun)
 - [LegendPei](https://github.com/LegendPei)
+- [funky-eyes](https://github.com/funky-eyes)
 - [maple525866](https://github.com/maple525866)
 
 
diff --git a/console/pom.xml b/console/pom.xml
index fb8ab3eb1a..ed3e487ce8 100644
--- a/console/pom.xml
+++ b/console/pom.xml
@@ -36,6 +36,7 @@
         <snakeyaml-for-server.version>2.0</snakeyaml-for-server.version>
         <tomcat-embed.version>11.0.12</tomcat-embed.version>
         <spring-ai.version>1.1.0</spring-ai.version>
+        
<spring-framework-for-server.version>6.2.8</spring-framework-for-server.version>
     </properties>
 
     <dependencyManagement>
@@ -63,6 +64,15 @@
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
+            <!-- spring-framework-->
+            <dependency>
+                <groupId>org.springframework</groupId>
+                <artifactId>spring-framework-bom</artifactId>
+                <version>${spring-framework-for-server.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+
             <dependency>
                 <groupId>org.yaml</groupId>
                 <artifactId>snakeyaml</artifactId>
diff --git a/dependencies/pom.xml b/dependencies/pom.xml
index 22a186c62d..09f8d431ee 100644
--- a/dependencies/pom.xml
+++ b/dependencies/pom.xml
@@ -162,7 +162,7 @@
             <dependency>
                 <groupId>org.springframework</groupId>
                 <artifactId>spring-framework-bom</artifactId>
-                <version>${spring-framework.version}</version>
+                <version>${spring-framework-bom.version}</version>
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
diff --git a/namingserver/pom.xml b/namingserver/pom.xml
index 38ae81dd63..0d2e9ff161 100644
--- a/namingserver/pom.xml
+++ b/namingserver/pom.xml
@@ -33,6 +33,7 @@
     <properties>
         <java.version>25</java.version>
         <spring-boot-for-server.version>3.5.2</spring-boot-for-server.version>
+        
<spring-framework-for-server.version>6.2.8</spring-framework-for-server.version>
         <snakeyaml-for-server.version>2.0</snakeyaml-for-server.version>
         <tomcat-embed.version>11.0.12</tomcat-embed.version>
         <httpclient.version>5.4.3</httpclient.version>
@@ -48,6 +49,14 @@
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
+            <!-- spring-framework-->
+            <dependency>
+                <groupId>org.springframework</groupId>
+                <artifactId>spring-framework-bom</artifactId>
+                <version>${spring-framework-for-server.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
         </dependencies>
     </dependencyManagement>
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to