This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/master by this push:
new 3e013ebb9 Next version will be 3.7.0 and use last surefire version
3.6.1 (#3633)
3e013ebb9 is described below
commit 3e013ebb98636914b5fe679c5ce58a25fc68817d
Author: Olivier Lamy <[email protected]>
AuthorDate: Wed Nov 25 16:03:44 2026 +1000
Next version will be 3.7.0 and use last surefire version 3.6.1 (#3633)
* Next version will be 3.7.0
Signed-off-by: Olivier Lamy <[email protected]>
* Use more recent surefire version 3.6.1, dogfooding
Signed-off-by: Olivier Lamy <[email protected]>
* fix test with upgrade
Signed-off-by: Olivier Lamy <[email protected]>
---------
Signed-off-by: Olivier Lamy <[email protected]>
---
maven-failsafe-plugin/pom.xml | 2 +-
maven-surefire-common/pom.xml | 2 +-
maven-surefire-plugin/pom.xml | 2 +-
maven-surefire-report-plugin/pom.xml | 2 +-
pom.xml | 12 ++++++------
src/config/checkstyle-suppressions.xml | 2 +-
surefire-api/pom.xml | 2 +-
surefire-booter/pom.xml | 2 +-
surefire-extensions-api/pom.xml | 2 +-
surefire-extensions-spi/pom.xml | 2 +-
surefire-its/pom.xml | 6 +++---
surefire-logger-api/pom.xml | 2 +-
surefire-providers/common-java5/pom.xml | 2 +-
surefire-providers/pom.xml | 2 +-
surefire-providers/surefire-junit-platform/pom.xml | 2 +-
.../surefire/junitplatform/JUnitPlatformProviderTest.java | 12 +++++++++---
surefire-report-parser/pom.xml | 2 +-
surefire-shadefire/pom.xml | 2 +-
surefire-shared-utils/pom.xml | 2 +-
19 files changed, 34 insertions(+), 28 deletions(-)
diff --git a/maven-failsafe-plugin/pom.xml b/maven-failsafe-plugin/pom.xml
index d9e0ae3cf..8d2353750 100644
--- a/maven-failsafe-plugin/pom.xml
+++ b/maven-failsafe-plugin/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<groupId>org.apache.maven.plugins</groupId>
diff --git a/maven-surefire-common/pom.xml b/maven-surefire-common/pom.xml
index e710003b4..dde6b3404 100644
--- a/maven-surefire-common/pom.xml
+++ b/maven-surefire-common/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>maven-surefire-common</artifactId>
diff --git a/maven-surefire-plugin/pom.xml b/maven-surefire-plugin/pom.xml
index c1b69849c..177ea6be4 100644
--- a/maven-surefire-plugin/pom.xml
+++ b/maven-surefire-plugin/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<groupId>org.apache.maven.plugins</groupId>
diff --git a/maven-surefire-report-plugin/pom.xml
b/maven-surefire-report-plugin/pom.xml
index 6ed9c9977..a86cc0dd6 100644
--- a/maven-surefire-report-plugin/pom.xml
+++ b/maven-surefire-report-plugin/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<groupId>org.apache.maven.plugins</groupId>
diff --git a/pom.xml b/pom.xml
index e100468c5..6a90f5606 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Apache Maven Surefire</name>
@@ -111,7 +111,7 @@
<maven.compiler.testTarget>${javaVersion}</maven.compiler.testTarget>
<jvm9ArgsTests />
<jvm.args.tests>${jvm9ArgsTests} -Xms32m -Xmx144m
-XX:SoftRefLRUPolicyMSPerMB=50 -Djava.awt.headless=true
-Djdk.net.URLClassPath.disableClassPathURLCheck=true</jvm.args.tests>
-
<project.build.outputTimestamp>2026-10-22T11:17:12Z</project.build.outputTimestamp>
+
<project.build.outputTimestamp>2026-11-23T12:20:25Z</project.build.outputTimestamp>
<slf4jVersion>1.7.36</slf4jVersion>
<junit.version>5.14.4</junit.version>
</properties>
@@ -336,11 +336,11 @@
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
- <version>3.5.5</version>
+ <version>3.6.1</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
- <version>3.5.5</version>
+ <version>3.6.1</version>
<!-- ${shadedVersion}, but resolved due to
https://issues.apache.org/jira/browse/MRELEASE-799 -->
<configuration>
<properties>
@@ -363,7 +363,7 @@
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-shadefire</artifactId>
<!-- ${shadedVersion}, but resolved due to
https://issues.apache.org/jira/browse/MRELEASE-799 -->
- <version>3.5.5</version>
+ <version>3.6.1</version>
</dependency>
</dependencies>
</plugin>
@@ -490,7 +490,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<!-- ${shadedVersion}, but resolved due to
https://issues.apache.org/jira/browse/MRELEASE-799 -->
- <version>3.5.5</version>
+ <version>3.6.1</version>
</plugin>
</plugins>
</reporting>
diff --git a/src/config/checkstyle-suppressions.xml
b/src/config/checkstyle-suppressions.xml
index 1b4419f4c..07c24387f 100644
--- a/src/config/checkstyle-suppressions.xml
+++ b/src/config/checkstyle-suppressions.xml
@@ -25,5 +25,5 @@ under the License.
<suppress checks="MethodLengthCheck"
files="AbstractStreamEncoderTest.java|EventChannelEncoderTest.java|EventDecoderTest.java|AbstractSurefireMojoTest.java|ForkStarter.java|AbstractSurefireMojoJava7PlusTest.java"
/>
<suppress checks="UnusedLocalVariableCheck"
files="PpidCheckerTest.java|ATestClass.java|E2ETest.java|AbstractSurefireMojo.java|AbstractStreamDecoderTest.java"
/>
<suppress checks="AvoidStarImportCheck"
files="BooterDeserializer.java|TestSuiteXmlParserTest.java" />
- <suppress checks="FileLengthCheck"
files="AbstractSurefireMojo.java|AbstractSurefireMojoTest.java" />
+ <suppress checks="FileLengthCheck"
files="AbstractSurefireMojo.java|AbstractSurefireMojoTest.java|JUnitPlatformProviderTest.java"
/>
</suppressions>
diff --git a/surefire-api/pom.xml b/surefire-api/pom.xml
index 4bf2a358b..06d38a4bc 100644
--- a/surefire-api/pom.xml
+++ b/surefire-api/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-api</artifactId>
diff --git a/surefire-booter/pom.xml b/surefire-booter/pom.xml
index 62a791b70..0c5a4bc6f 100644
--- a/surefire-booter/pom.xml
+++ b/surefire-booter/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-booter</artifactId>
diff --git a/surefire-extensions-api/pom.xml b/surefire-extensions-api/pom.xml
index 0ed5c086f..08bba7d22 100644
--- a/surefire-extensions-api/pom.xml
+++ b/surefire-extensions-api/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-extensions-api</artifactId>
diff --git a/surefire-extensions-spi/pom.xml b/surefire-extensions-spi/pom.xml
index 8f67e770c..c9d1da1cf 100644
--- a/surefire-extensions-spi/pom.xml
+++ b/surefire-extensions-spi/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-extensions-spi</artifactId>
diff --git a/surefire-its/pom.xml b/surefire-its/pom.xml
index 39cbaa9a6..dacde3d0c 100644
--- a/surefire-its/pom.xml
+++ b/surefire-its/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-its</artifactId>
@@ -174,7 +174,7 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
- <version>3.5.4</version>
+ <version>3.6.1</version>
<configuration>
<includes>
<include>**/*Test.java</include>
@@ -188,7 +188,7 @@
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-shadefire</artifactId>
<!-- ${shadedVersion}, but resolved due to
https://issues.apache.org/jira/browse/MRELEASE-799 -->
- <version>3.5.4</version>
+ <version>3.6.1</version>
</dependency>
</dependencies>
</plugin>
diff --git a/surefire-logger-api/pom.xml b/surefire-logger-api/pom.xml
index 6725ff180..a717fa47e 100644
--- a/surefire-logger-api/pom.xml
+++ b/surefire-logger-api/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-logger-api</artifactId>
diff --git a/surefire-providers/common-java5/pom.xml
b/surefire-providers/common-java5/pom.xml
index 0f3b4361c..be40528d8 100644
--- a/surefire-providers/common-java5/pom.xml
+++ b/surefire-providers/common-java5/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-providers</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>common-java5</artifactId>
diff --git a/surefire-providers/pom.xml b/surefire-providers/pom.xml
index 6d453e117..ee2d4754a 100644
--- a/surefire-providers/pom.xml
+++ b/surefire-providers/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-providers</artifactId>
diff --git a/surefire-providers/surefire-junit-platform/pom.xml
b/surefire-providers/surefire-junit-platform/pom.xml
index 3675fd8e8..f2f39f890 100644
--- a/surefire-providers/surefire-junit-platform/pom.xml
+++ b/surefire-providers/surefire-junit-platform/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-providers</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-junit-platform</artifactId>
diff --git
a/surefire-providers/surefire-junit-platform/src/test/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProviderTest.java
b/surefire-providers/surefire-junit-platform/src/test/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProviderTest.java
index 54d0e049d..72c7f9a81 100644
---
a/surefire-providers/surefire-junit-platform/src/test/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProviderTest.java
+++
b/surefire-providers/surefire-junit-platform/src/test/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProviderTest.java
@@ -55,6 +55,7 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.parallel.ResourceLock;
import org.junit.jupiter.api.parallel.Resources;
+import org.junit.jupiter.engine.JupiterTestEngine;
import org.junit.platform.engine.TestDescriptor;
import org.junit.platform.engine.TestExecutionResult;
import org.junit.platform.engine.UniqueId;
@@ -1670,7 +1671,7 @@ private static void invokeProvider(JUnitPlatformProvider
provider, Object forkTe
private static LauncherSessionFactory spyingLauncherSessionFactory(
List<LauncherSession> createdSessions, TestExecutionListener...
listeners) {
LauncherConfig launcherConfig =
-
LauncherConfig.builder().addTestExecutionListeners(listeners).build();
+ jupiterOnly().addTestExecutionListeners(listeners).build();
return cancellationToken -> {
LauncherSession session =
spy(LauncherFactory.openSession(launcherConfig));
createdSessions.add(session);
@@ -1683,12 +1684,17 @@ private static LauncherSessionFactory
createLauncherSessionWithListeners(TestExe
}
private static LauncherSessionFactory
launcherSessionConfig(UnaryOperator<LauncherConfig.Builder> configurer) {
- LauncherConfig launcherConfig =
- configurer.apply(LauncherConfig.builder()).build();
+ LauncherConfig launcherConfig =
configurer.apply(jupiterOnly()).build();
return cancellationToken ->
createLauncherSessionAdapter(LauncherFactory.openSession(launcherConfig),
cancellationToken);
}
+ // The Surefire running this build adds the vintage engine because
junit:junit is a test dependency.
+ // Only register Jupiter so that extra engine doesn't change the counts.
+ private static LauncherConfig.Builder jupiterOnly() {
+ return
LauncherConfig.builder().enableTestEngineAutoRegistration(false).addTestEngines(new
JupiterTestEngine());
+ }
+
private static LauncherSessionAdapter createLauncherSessionAdapter(
LauncherSession session, CancellationTokenAdapter
cancellationToken) {
return new LauncherSessionAdapter(session, session.getLauncher(),
cancellationToken);
diff --git a/surefire-report-parser/pom.xml b/surefire-report-parser/pom.xml
index 251ac6cdc..ca3da1ac8 100644
--- a/surefire-report-parser/pom.xml
+++ b/surefire-report-parser/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-report-parser</artifactId>
diff --git a/surefire-shadefire/pom.xml b/surefire-shadefire/pom.xml
index b77f7f8d2..0172155e1 100644
--- a/surefire-shadefire/pom.xml
+++ b/surefire-shadefire/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-shadefire</artifactId>
diff --git a/surefire-shared-utils/pom.xml b/surefire-shared-utils/pom.xml
index 793f69c9a..25ac25392 100644
--- a/surefire-shared-utils/pom.xml
+++ b/surefire-shared-utils/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire</artifactId>
- <version>3.6.2-SNAPSHOT</version>
+ <version>3.7.0-SNAPSHOT</version>
</parent>
<artifactId>surefire-shared-utils</artifactId>