commit | 996f53f4b723e6973aa3ad5bf2f6423056c65cc1 | [log] [tgz] |
---|---|---|
author | olivier lamy <olamy@apache.org> | Wed Oct 10 14:19:25 2018 +1000 |
committer | olivier lamy <olamy@apache.org> | Wed Oct 10 14:19:25 2018 +1000 |
tree | 6db4a63767d0e550d32dcff3fe103f207cb1fb97 | |
parent | 1ce42c18c4cfaa456b7c6ac5f5ae09dae28c18b8 [diff] |
[MPLUGIN-337] Try to derive JDK requirements also from release parameter Signed-off-by: olivier lamy <olamy@apache.org>
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 @@ return jdk; } + jdk = getPluginParameter( compiler, "release" ); + if ( jdk != null ) + { + return jdk; + } + // default value jdk = project.getProperties().getProperty( "maven.compiler.target" ); if ( jdk != null )