This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x by this push:
new 1d7a496bfb Move PTS into a profile
1d7a496bfb is described below
commit 1d7a496bfbf2b40f0f180244bee7c3788fef6ed8
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 f795bafe56..ae84b68847 100644
--- a/pom.xml
+++ b/pom.xml
@@ -600,11 +600,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>
@@ -998,6 +993,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>