This is an automated email from the ASF dual-hosted git repository. pkarwasz pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 679505e9c566701e18b9b0270e0b32bd8d3545e3 Author: Piotr P. Karwasz <[email protected]> AuthorDate: Fri Jun 14 21:17:30 2024 +0200 Move PTS into a profile --- pom.xml | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index d3797eed72..98d77310d4 100644 --- a/pom.xml +++ b/pom.xml @@ -649,11 +649,6 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkCount>1C</forkCount> - <properties> - <predictiveSelection> - <enabled>${predictive.test.selection.enabled}</enabled> - </predictiveSelection> - </properties> <reuseForks>false</reuseForks> <runOrder>alphabetical</runOrder> <systemPropertyVariables> @@ -966,6 +961,40 @@ </build> </profile> + <profile> + <!-- These settings cause a build failure if the Develocity extension is absent. + + Due to a bug in Develocity, we disable Develocity by removing the `.mvn/extensions.xml` file + in the `deploy-site` run. + The removal of the file will also disable this profile. + --> + <id>predictive-test-selection</id> + + <activation> + <file> + <exists>${maven.multiModuleProjectDirectory}/.mvn/extensions.xml</exists> + </file> + </activation> + + <build> + <plugins> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <properties> + <predictiveSelection> + <enabled>${predictive.test.selection.enabled}</enabled> + </predictiveSelection> + </properties> + </configuration> + </plugin> + + </plugins> + </build> + + </profile> </profiles> </project>
