Skip to content

Commit

Permalink
#293 allow to pass kotlin compiler args via Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
casid committed Oct 30, 2023
1 parent 47f0e7b commit 4047699
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jte-maven-plugin/src/main/java/gg/jte/maven/CompilerMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -131,6 +137,7 @@ public void execute() {
templateEngine.setHtmlCommentsPreserved(htmlCommentsPreserved);
templateEngine.setBinaryStaticContent(binaryStaticContent);
templateEngine.setCompileArgs(calculateCompileArgs());
templateEngine.setCompileArgs(kotlinCompileArgs);

int amount;
try {
Expand Down

0 comments on commit 4047699

Please sign in to comment.