This is an automated email from the ASF dual-hosted git repository.
xjlgod 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 1d70004942 feature: Exclude namingserver and console module builds
from build workflows with JDK versions less than 25 (#7863)
1d70004942 is described below
commit 1d7000494210d3ac8301a7e1a9bf694b06d78b6d
Author: 徐博 洪 <[email protected]>
AuthorDate: Mon Dec 15 12:21:37 2025 +0800
feature: Exclude namingserver and console module builds from build
workflows with JDK versions less than 25 (#7863)
* feature: Exclude namingserver builds from build workflows with JDK
versions less than 25
* fix: Plus the exclusion of the console module
---
.github/workflows/build.yml | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1fff81adee..1761aa1656 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -85,6 +85,7 @@ 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
@@ -97,8 +98,14 @@ jobs:
- name: "Test with Maven and Java${{ matrix.java }}"
if: matrix.java != '8'
run: |
- ./mvnw -T 4C clean test \
- -e -B
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
+ 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
# step 7
- name: "Save local maven repository cache"
uses: actions/cache/save@v4
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]