This is an automated email from the ASF dual-hosted git repository.
funky-eyes 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 2376244d90 refactor: centralize protobuf and grpc version properties
to build/pom.xml (#8177)
2376244d90 is described below
commit 2376244d908042afc90a60e46e903051616f0364
Author: 徐晓伟 <[email protected]>
AuthorDate: Sat Jul 25 17:36:43 2026 +0800
refactor: centralize protobuf and grpc version properties to build/pom.xml
(#8177)
---
build/pom.xml | 2 ++
changes/en-us/2.x.md | 1 +
changes/zh-cn/2.x.md | 1 +
core/pom.xml | 2 +-
dependencies/pom.xml | 2 --
extensions/rpc/seata-grpc/pom.xml | 8 ++++----
serializer/seata-serializer-protobuf/pom.xml | 2 +-
test-suite/test-new-version/pom.xml | 6 +++---
8 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/build/pom.xml b/build/pom.xml
index df29154764..b5257a0ba3 100644
--- a/build/pom.xml
+++ b/build/pom.xml
@@ -102,6 +102,8 @@
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
<protobuf-maven-plugin.version>0.6.1</protobuf-maven-plugin.version>
<kotlin-maven-plugin.version>2.2.20</kotlin-maven-plugin.version>
+ <protobuf.version>3.25.5</protobuf.version>
+ <grpc.version>1.55.1</grpc.version>
<!-- Check -->
<maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
<license-maven-plugin.version>4.0</license-maven-plugin.version>
diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 4a1015b2af..0fba96469d 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -45,6 +45,7 @@ Add changes here for all PR submitted to the 2.x branch.
### refactor:
+- [[#8177](https://github.com/apache/incubator-seata/pull/8177)] centralize
protobuf and grpc version properties to build/pom.xml
### doc:
diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md
index 63cdd6c1ba..b04dd48651 100644
--- a/changes/zh-cn/2.x.md
+++ b/changes/zh-cn/2.x.md
@@ -44,6 +44,7 @@
### refactor:
+- [[#8177](https://github.com/apache/incubator-seata/pull/8177)] 将 protobuf 和
grpc 版本属性集中到 build/pom.xml
### doc:
diff --git a/core/pom.xml b/core/pom.xml
index e0b2395a49..86ee611e6d 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -123,7 +123,7 @@
<configuration>
<protoSourceRoot>${project.basedir}/src/main/resources/protobuf/org/apache/seata/protocol/transcation/</protoSourceRoot>
<protocArtifact>
-
com.google.protobuf:protoc:3.25.4:exe:${os.detected.classifier}
+
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
<executions>
diff --git a/dependencies/pom.xml b/dependencies/pom.xml
index 20df1aa86d..ab92791834 100644
--- a/dependencies/pom.xml
+++ b/dependencies/pom.xml
@@ -78,8 +78,6 @@
<netty.version>4.1.101.Final</netty.version>
<sofa.hessian.version>4.0.3</sofa.hessian.version>
<sofa.bolt.version>1.6.7</sofa.bolt.version>
- <protobuf.version>3.25.5</protobuf.version>
- <grpc.version>1.55.1</grpc.version>
<kryo.version>5.4.0</kryo.version>
<kryo-serializers.version>0.45</kryo-serializers.version>
<hessian.version>4.0.63</hessian.version>
diff --git a/extensions/rpc/seata-grpc/pom.xml
b/extensions/rpc/seata-grpc/pom.xml
index ac78a50f68..c257cad515 100644
--- a/extensions/rpc/seata-grpc/pom.xml
+++ b/extensions/rpc/seata-grpc/pom.xml
@@ -82,9 +82,9 @@
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<configuration>
-
<protocArtifact>com.google.protobuf:protoc:3.25.4:exe:${os.detected.classifier}</protocArtifact>
+
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
-
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.55.1:exe:${os.detected.classifier}</pluginArtifact>
+
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
<executions>
<execution>
@@ -97,5 +97,5 @@
</plugin>
</plugins>
</build>
-
-</project>
\ No newline at end of file
+
+</project>
diff --git a/serializer/seata-serializer-protobuf/pom.xml
b/serializer/seata-serializer-protobuf/pom.xml
index e606c7ab62..8f1fa94cf7 100644
--- a/serializer/seata-serializer-protobuf/pom.xml
+++ b/serializer/seata-serializer-protobuf/pom.xml
@@ -57,7 +57,7 @@
<configuration>
<protoSourceRoot>${project.basedir}/src/main/resources/protobuf/org/apache/seata/protocol/transcation/</protoSourceRoot>
<protocArtifact>
-
com.google.protobuf:protoc:3.25.4:exe:${os.detected.classifier}
+
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
<executions>
diff --git a/test-suite/test-new-version/pom.xml
b/test-suite/test-new-version/pom.xml
index d19007e030..a97cce1bcc 100644
--- a/test-suite/test-new-version/pom.xml
+++ b/test-suite/test-new-version/pom.xml
@@ -57,11 +57,11 @@
${project.basedir}/src/test/resources/protobuf/org/apache/seata/protocol/transcation/
</protoSourceRoot>
<protocArtifact>
-
com.google.protobuf:protoc:3.25.4:exe:${os.detected.classifier}
+
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>
-
io.grpc:protoc-gen-grpc-java:1.55.1:exe:${os.detected.classifier}
+
io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
</pluginArtifact>
</configuration>
<executions>
@@ -207,4 +207,4 @@
</dependencies>
-</project>
\ No newline at end of file
+</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]