Skip to content

Commit 38ea0c1

Browse files
committed
[MCOMPILER-402] Pass implicit configuration down to compiler
1 parent 0e8e916 commit 38ea0c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java

+10
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,14 @@ public abstract class AbstractCompilerMojo
402402
@Parameter( property = "maven.compiler.debuglevel" )
403403
private String debuglevel;
404404

405+
/**
406+
* Keyword to be appended to the <code>-implicit:</code> command-line switch.
407+
*
408+
* @since 3.10.2
409+
*/
410+
@Parameter( property = "maven.compiler.implicit" )
411+
private String implicit;
412+
405413
/**
406414
*
407415
*/
@@ -686,6 +694,8 @@ public void execute()
686694

687695
compilerConfiguration.setDebugFileName( getDebugFileName() );
688696

697+
compilerConfiguration.setImplicitOption( implicit );
698+
689699
if ( debug && StringUtils.isNotEmpty( debuglevel ) )
690700
{
691701
String[] split = StringUtils.split( debuglevel, "," );

0 commit comments

Comments
 (0)