This is an automated email from the ASF dual-hosted git repository.
jianbin 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 2bfaf1ed0c optimize: automatically skip console/namingserver on
JDK<25 via (#7864)
2bfaf1ed0c is described below
commit 2bfaf1ed0c561499ba5b4ddb7bc0f35d7bba1851
Author: 徐博 洪 <[email protected]>
AuthorDate: Tue Dec 16 09:24:38 2025 +0800
optimize: automatically skip console/namingserver on JDK<25 via (#7864)
---
.github/workflows/build.yml | 11 ++---------
changes/en-us/2.x.md | 1 +
changes/zh-cn/2.x.md | 1 +
pom.xml | 15 +++++++++++++--
4 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1761aa1656..1fff81adee 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -85,7 +85,6 @@ jobs:
-e -B \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
\
-Dorg.slf4j.simpleLogger.log.net.sourceforge.pmd=info \
- -pl '!namingserver,!console' -am \
2>&1 | tee build.log | while read line; do
echo "$line"
if [[ "$line" == *"PMD Failure"* ]]; then
@@ -98,14 +97,8 @@ jobs:
- name: "Test with Maven and Java${{ matrix.java }}"
if: matrix.java != '8'
run: |
- if [ ${{ matrix.java }} -lt 25 ]; then
- ./mvnw -T 4C clean test \
- -pl '!namingserver,!console' -am \
- -e -B
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
- else
- ./mvnw -T 4C clean test \
- -e -B
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
- fi
+ ./mvnw -T 4C clean test \
+ -e -B
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
# step 7
- name: "Save local maven repository cache"
uses: actions/cache/save@v4
diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 3740063c62..76e030f3ec 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -87,6 +87,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7809](https://github.com/apache/incubator-seata/pull/7809)] optimize
README.md
- [[#7813](https://github.com/apache/incubator-seata/pull/7813)] add decode
buffer limit
- [[#7829](https://github.com/apache/incubator-seata/pull/7829)] optimize lz4
compressor
+- [[#7864](https://github.com/apache/incubator-seata/pull/7864)] automatically
skip the compilation of console and namingserver modules in JDK<25
diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md
index 3236c9f6ab..d566d506c3 100644
--- a/changes/zh-cn/2.x.md
+++ b/changes/zh-cn/2.x.md
@@ -86,6 +86,7 @@
- [[#7809](https://github.com/apache/incubator-seata/pull/7809)] 优化 README.md
- [[#7813](https://github.com/apache/incubator-seata/pull/7813)] 增加解码buffer限制
- [[#7829](https://github.com/apache/incubator-seata/pull/7829)] 优化lz4
compressor
+- [[#7864](https://github.com/apache/incubator-seata/pull/7864)]
自动跳过JDK<25环境下的console和namingserver模块编译
### security:
diff --git a/pom.xml b/pom.xml
index ff7385bb47..74e2fc1f52 100644
--- a/pom.xml
+++ b/pom.xml
@@ -39,7 +39,7 @@
<module>bom</module>
<module>common</module>
<module>config</module>
- <module>console</module>
+<!-- <module>console</module>-->
<module>core</module>
<module>compatible</module>
<module>dependencies</module>
@@ -60,7 +60,7 @@
<module>sqlparser</module>
<module>server</module>
<module>integration-tx-api</module>
- <module>namingserver</module>
+<!-- <module>namingserver</module>-->
<module>test-suite/test-new-version</module>
<module>test-suite/test-old-version</module>
<!--<module>seata-plugin</module>-->
@@ -128,6 +128,17 @@
</dependencyManagement>
<profiles>
+ <!-- profile: onlyBuildOnJDK25+ -->
+ <profile>
+ <id>JDK25Plus</id>
+ <activation>
+ <jdk>[25,)</jdk>
+ </activation>
+ <modules>
+ <module>namingserver</module>
+ <module>console</module>
+ </modules>
+ </profile>
<!-- profile: licenseCheck -->
<profile>
<id>licenseCheck</id>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]