You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by so...@apache.org on 2018/05/05 12:57:29 UTC

[maven-surefire] 06/10: Format and ignore org.junit.platform.commons.* signatures check

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

sor pushed a commit to branch 1330
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit e566063e5a372514724acd9d1dc0b73fb05808b6
Author: Christian Stein <so...@gmail.com>
AuthorDate: Fri May 4 09:11:38 2018 +0200

    Format and ignore org.junit.platform.commons.* signatures check
---
 surefire-providers/surefire-junit-platform/pom.xml                 | 3 +++
 .../apache/maven/surefire/junitplatform/JUnitPlatformProvider.java | 7 ++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/surefire-providers/surefire-junit-platform/pom.xml b/surefire-providers/surefire-junit-platform/pom.xml
index bf4869b..d8c6d63 100644
--- a/surefire-providers/surefire-junit-platform/pom.xml
+++ b/surefire-providers/surefire-junit-platform/pom.xml
@@ -126,6 +126,9 @@
                                 <artifactId>java18</artifactId>
                                 <version>1.0</version>
                             </signature>
+                            <ignores>
+                                <param>org.junit.platform.commons.*</param>
+                            </ignores>
                         </configuration>
                     </execution>
                 </executions>
diff --git a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
index 510266e..3b2a28a 100644
--- a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
+++ b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
@@ -58,6 +58,11 @@ import org.junit.platform.launcher.TagFilter;
 import org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder;
 import org.junit.platform.launcher.core.LauncherFactory;
 
+/**
+ * JUnitPlatformProvider.
+ *
+ * @since 1.0
+ */
 public class JUnitPlatformProvider
     extends AbstractProvider
 {
@@ -225,7 +230,7 @@ public class JUnitPlatformProvider
     {
         Optional<List<String>> elements = Optional.empty();
 
-        Preconditions.condition(!groups.isPresent() || !tags.isPresent(), EXCEPTION_MESSAGE_BOTH_NOT_ALLOWED );
+        Preconditions.condition( !groups.isPresent() || !tags.isPresent(), EXCEPTION_MESSAGE_BOTH_NOT_ALLOWED );
 
         if ( groups.isPresent() )
         {

-- 
To stop receiving notification emails like this one, please contact
sor@apache.org.