You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2018/10/10 04:19:38 UTC

[maven-plugin-tools] branch master updated: [MPLUGIN-337] Try to derive JDK requirements also from release parameter

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-plugin-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 996f53f  [MPLUGIN-337] Try to derive JDK requirements also from release parameter
996f53f is described below

commit 996f53f4b723e6973aa3ad5bf2f6423056c65cc1
Author: olivier lamy <ol...@apache.org>
AuthorDate: Wed Oct 10 14:19:25 2018 +1000

    [MPLUGIN-337] Try to derive JDK requirements also from release parameter
    
    Signed-off-by: olivier lamy <ol...@apache.org>
---
 .../src/main/java/org/apache/maven/plugin/plugin/PluginReport.java  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java
index d432333..f005ce4 100644
--- a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java
+++ b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java
@@ -772,6 +772,12 @@ public class PluginReport
                 return jdk;
             }
 
+            jdk = getPluginParameter( compiler, "release" );
+            if ( jdk != null )
+            {
+                return jdk;
+            }
+
             // default value
             jdk = project.getProperties().getProperty( "maven.compiler.target" );
             if ( jdk != null )