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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Olivier Lamy
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 <[hidden email]>
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 <[hidden email]>
---
 .../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 )