diff --git a/jte-maven-plugin/src/main/java/gg/jte/maven/CompilerMojo.java b/jte-maven-plugin/src/main/java/gg/jte/maven/CompilerMojo.java index f4ec1ae8..e8419407 100644 --- a/jte-maven-plugin/src/main/java/gg/jte/maven/CompilerMojo.java +++ b/jte-maven-plugin/src/main/java/gg/jte/maven/CompilerMojo.java @@ -91,6 +91,12 @@ public class CompilerMojo extends AbstractMojo { @Parameter public String[] compileArgs; + /** + * Sets additional compiler arguments for kte templates. + */ + @Parameter + public String[] kotlinCompileArgs; + /** * The package name, where template classes are generated to. */ @@ -131,6 +137,7 @@ public void execute() { templateEngine.setHtmlCommentsPreserved(htmlCommentsPreserved); templateEngine.setBinaryStaticContent(binaryStaticContent); templateEngine.setCompileArgs(calculateCompileArgs()); + templateEngine.setCompileArgs(kotlinCompileArgs); int amount; try {