You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2019/04/06 17:43:29 UTC

[maven-invoker] 01/01: Use source/target 1.7 Java 9 and above

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

rfscholte pushed a commit to branch stabilize
in repository https://gitbox.apache.org/repos/asf/maven-invoker.git

commit db0bd47d82a2af5773686ef294bac3fc1445d7b9
Author: rfscholte <rf...@apache.org>
AuthorDate: Sat Apr 6 19:43:15 2019 +0200

    Use source/target 1.7 Java 9 and above
---
 .../org/apache/maven/shared/invoker/DefaultInvokerTest.java | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java b/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java
index deab040..be56f8d 100644
--- a/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java
+++ b/src/test/java/org/apache/maven/shared/invoker/DefaultInvokerTest.java
@@ -26,6 +26,7 @@ import java.net.URISyntaxException;
 import java.net.URL;
 import java.util.Arrays;
 import java.util.Properties;
+import java.util.regex.Pattern;
 
 import org.apache.maven.shared.utils.StringUtils;
 import org.apache.maven.shared.utils.cli.CommandLineUtils;
@@ -52,8 +53,8 @@ public class DefaultInvokerTest
         if ( !System.getProperty( "java.version" ).startsWith( "1." ) )
         {
             Properties properties = new Properties();
-            properties.put( "maven.compiler.source", "1.6" );
-            properties.put( "maven.compiler.target", "1.6" );
+            properties.put( "maven.compiler.source", "1.7" );
+            properties.put( "maven.compiler.target", "1.7" );
             request.setProperties( properties );
         }
 
@@ -78,8 +79,8 @@ public class DefaultInvokerTest
         if ( !System.getProperty( "java.version" ).startsWith( "1." ) )
         {
             Properties properties = new Properties();
-            properties.put( "maven.compiler.source", "1.6" );
-            properties.put( "maven.compiler.target", "1.6" );
+            properties.put( "maven.compiler.source", "1.7" );
+            properties.put( "maven.compiler.target", "1.7" );
             request.setProperties( properties );
         }
         InvocationResult result = invoker.execute( request );
@@ -104,8 +105,8 @@ public class DefaultInvokerTest
         if ( !System.getProperty( "java.version" ).startsWith( "1." ) )
         {
             Properties properties = new Properties();
-            properties.put( "maven.compiler.source", "1.6" );
-            properties.put( "maven.compiler.target", "1.6" );
+            properties.put( "maven.compiler.source", "1.7" );
+            properties.put( "maven.compiler.target", "1.7" );
             request.setProperties( properties );
         }