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 22945a83ac optimize: conditionally include test modules using Maven profiles (#7432) 22945a83ac is described below commit 22945a83ac68f0e3629425aafaec99f368497c63 Author: Eric Wong <iwongjian...@gmail.com> AuthorDate: Fri Jun 13 21:02:57 2025 +0800 optimize: conditionally include test modules using Maven profiles (#7432) --- changes/en-us/2.x.md | 1 + changes/zh-cn/2.x.md | 1 + pom.xml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 60 insertions(+), 3 deletions(-) diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md index 745b49f7ba..f283ecea3a 100644 --- a/changes/en-us/2.x.md +++ b/changes/en-us/2.x.md @@ -56,6 +56,7 @@ Add changes here for all PR submitted to the 2.x branch. - [[#7418](https://github.com/apache/incubator-seata/pull/7418)] add jackson notice - [[#7419](https://github.com/apache/incubator-seata/pull/7419)] Add maven profile to support packaging source code - [[#7428](https://github.com/apache/incubator-seata/pull/7428)] pmd-check log as ERROR level +- [[#7432](https://github.com/apache/incubator-seata/pull/7432)] conditionally include test modules using Maven profiles ### security: diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md index a6c6d74f6d..ae68246b62 100644 --- a/changes/zh-cn/2.x.md +++ b/changes/zh-cn/2.x.md @@ -89,6 +89,7 @@ - [[#7420](https://github.com/apache/incubator-seata/pull/7420)] 为 RemotingFactoryBeanParser 类添加了单元测试 - [[#7379](https://github.com/apache/incubator-seata/issues/7379)] 为 TccAnnotationProcessor 添加了单元测试 - [[#7422](https://github.com/apache/incubator-seata/pull/7422)] 为 seata-spring-boot-starter 添加了测试 +- [[#7432](https://github.com/apache/incubator-seata/pull/7432)] 使用Maven Profile按条件引入Test模块 ### refactor: diff --git a/pom.xml b/pom.xml index c2391e609f..19fe0482d3 100644 --- a/pom.xml +++ b/pom.xml @@ -44,7 +44,6 @@ <module>compatible</module> <module>dependencies</module> <module>discovery</module> - <!--<module>distribution</module>--> <!-- excluded from source release --> <module>integration/rpc-core</module> <module>integration/dubbo</module> <module>integration/dubbo-alibaba</module> @@ -60,9 +59,7 @@ <module>rocketmq</module> <module>spring</module> <module>tcc</module> - <!--<module>test</module>--> <!-- excluded from source release --> <module>mock-server</module> - <!--<module>test-old-version</module>--> <!-- excluded from source release --> <module>tm</module> <module>metrics</module> <module>serializer</module> @@ -385,8 +382,50 @@ </plugins> </build> </profile> + + <!-- profile: source-release --> <profile> <id>source-release</id> + <modules> + <module>build</module> + <module>all</module> + <module>bom</module> + <module>common</module> + <module>config</module> + <module>console</module> + <module>core</module> + <module>compatible</module> + <module>dependencies</module> + <module>discovery</module> + <module>integration/rpc-core</module> + <module>integration/dubbo</module> + <module>integration/dubbo-alibaba</module> + <module>integration/sofa-rpc</module> + <module>integration/motan</module> + <module>integration/grpc</module> + <module>integration/http</module> + <module>integration/http-jakarta</module> + <module>integration/hsf</module> + <module>integration/brpc</module> + <module>rm</module> + <module>rm-datasource</module> + <module>rocketmq</module> + <module>spring</module> + <module>tcc</module> + <module>mock-server</module> + <module>tm</module> + <module>metrics</module> + <module>serializer</module> + <module>seata-spring-boot-starter</module> + <module>seata-spring-autoconfigure</module> + <module>compressor</module> + <module>saga</module> + <module>sqlparser</module> + <module>server</module> + <module>ext/apm-seata-skywalking-plugin</module> + <module>integration-tx-api</module> + <module>namingserver</module> + </modules> <build> <plugins> <plugin> @@ -411,6 +450,22 @@ </plugins> </build> </profile> + <profile> + <id>include-test-modules</id> + <activation> + <file> + <exists>test/pom.xml</exists> + </file> + <property> + <name>!excludeTestModules</name> + </property> + </activation> + <modules> + <module>distribution</module> + <module>test</module> + <module>test-old-version</module> + </modules> + </profile> </profiles> <build> --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For additional commands, e-mail: notifications-h...@seata.apache.org