From commits-return-72549-archive-asf-public=cust-asf.ponee.io@maven.apache.org Sat Apr 14 11:07:02 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2889418064D for ; Sat, 14 Apr 2018 11:07:01 +0200 (CEST) Received: (qmail 99095 invoked by uid 500); 14 Apr 2018 09:07:00 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 99081 invoked by uid 99); 14 Apr 2018 09:07:00 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Apr 2018 09:07:00 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 23A7C80770; Sat, 14 Apr 2018 09:07:00 +0000 (UTC) Date: Sat, 14 Apr 2018 09:07:00 +0000 To: "commits@maven.apache.org" Subject: [maven-compiler-plugin] branch TEST_TO_FIX_MCOMPILER-192 updated: Cleaning up code. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152369682010.6467.7005672177804095300@gitbox.apache.org> From: khmarbaise@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: maven-compiler-plugin X-Git-Refname: refs/heads/TEST_TO_FIX_MCOMPILER-192 X-Git-Reftype: branch X-Git-Oldrev: c584f0f2e4ed8d8986de024ddb979e28446c3072 X-Git-Newrev: 98ac404e0a33c6ecd2427a378fa24c15c4de8457 X-Git-Rev: 98ac404e0a33c6ecd2427a378fa24c15c4de8457 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. khmarbaise pushed a commit to branch TEST_TO_FIX_MCOMPILER-192 in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git The following commit(s) were added to refs/heads/TEST_TO_FIX_MCOMPILER-192 by this push: new 98ac404 Cleaning up code. 98ac404 is described below commit 98ac404e0a33c6ecd2427a378fa24c15c4de8457 Author: Karl Heinz Marbaise AuthorDate: Sat Apr 14 11:06:50 2018 +0200 Cleaning up code. --- .../org/apache/maven/plugin/compiler/CompilerMojoTestCase.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java index 3882108..8f2e247 100644 --- a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java +++ b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java @@ -58,12 +58,10 @@ public class CompilerMojoTestCase super.setUp(); String javaSpec = System.getProperty( "java.specification.version" ); - if ( "9".equals( javaSpec ) ) - { - source = "6"; - target = "6"; - } - if ( "10".equals( javaSpec ) ) + // It is needed to set target/source to JDK 6 for JDK9 and JDK10 + // cause this is the lowest version which is supported by those JDK's. + // The default source/target "5" is not supported anymore. + if ( "9".equals( javaSpec ) || "10".equals ( javaSpec ) ) { source = "6"; target = "6"; -- To stop receiving notification emails like this one, please contact khmarbaise@apache.org.