This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch jdk-16-17
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/jdk-16-17 by this push:
     new 57272a8  disabled tests in surefire-junit-platform when jdk 1.7
57272a8 is described below

commit 57272a88287d93af896d6eb4a957ccb2f04a0dbf
Author: tibordigana <tibor.dig...@gmail.com>
AuthorDate: Thu Feb 18 01:50:43 2021 +0100

    disabled tests in surefire-junit-platform when jdk 1.7
---
 surefire-providers/surefire-junit-platform/pom.xml | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/surefire-providers/surefire-junit-platform/pom.xml 
b/surefire-providers/surefire-junit-platform/pom.xml
index 1cc04f5..0914270 100644
--- a/surefire-providers/surefire-junit-platform/pom.xml
+++ b/surefire-providers/surefire-junit-platform/pom.xml
@@ -164,7 +164,6 @@
                 <version>3.0.0-M4</version> <!-- ${shadedVersion}, but 
resolved due to https://issues.apache.org/jira/browse/MRELEASE-799 -->
                 <configuration>
                     <argLine>${jvm.args.tests} ${jacoco.agent}</argLine>
-                    <jvm>${java.home}/bin/java</jvm>
                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
                     <includes>
                         <include>**/JUnit47SuiteTest.java</include>
@@ -173,4 +172,22 @@
             </plugin>
         </plugins>
     </build>
+    <profiles>
+        <profile>
+            <id>jdk7</id>
+            <activation>
+                <jdk>[1.7, 1.8)</jdk>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <skipTests>true</skipTests>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>

Reply via email to