Skip to content

Commit

Permalink
[MPLUGIN-337] Try to derive JDK requirements also from release parameter
Browse files Browse the repository at this point in the history
Signed-off-by: olivier lamy <[email protected]>
  • Loading branch information
olamy committed Oct 10, 2018
1 parent 1ce42c1 commit 996f53f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,12 @@ private static String discoverJdkRequirement( MavenProject project, Requirements
return jdk;
}

jdk = getPluginParameter( compiler, "release" );
if ( jdk != null )
{
return jdk;
}

// default value
jdk = project.getProperties().getProperty( "maven.compiler.target" );
if ( jdk != null )
Expand Down

0 comments on commit 996f53f

Please sign in to comment.