KT-16762 Maven: JS compiler option main is missing

This commit is contained in:
Sergey Mashkov
2017-03-23 12:57:54 +03:00
parent 6de0d79a78
commit 307fdd1024
2 changed files with 8 additions and 0 deletions
@@ -129,6 +129,7 @@ class KotlinMavenImporter : MavenImporter(KOTLIN_PLUGIN_GROUP_ID, KOTLIN_PLUGIN_
arguments.outputFile = configuration.getChild("outputFile")?.text
arguments.metaInfo = configuration.getChild("metaInfo")?.text?.trim()?.toBoolean() ?: false
arguments.moduleKind = configuration.getChild("moduleKind")?.text
arguments.main = configuration.getChild("main")?.text
}
}
@@ -69,6 +69,12 @@ public class K2JSCompilerMojo extends KotlinCompileMojoBase<K2JSCompilerArgument
@Parameter(defaultValue = "false")
private boolean sourceMap;
/**
* Main invocation behaviour. Possible values are <b>CALL</b> and <b>NO_CALL</b>.
*/
@Parameter
private String main;
/**
* <p>Specifies which JS module system to generate compatible sources for. Options are:</p>
* <ul>
@@ -90,6 +96,7 @@ public class K2JSCompilerMojo extends KotlinCompileMojoBase<K2JSCompilerArgument
arguments.noStdlib = true;
arguments.metaInfo = metaInfo;
arguments.moduleKind = moduleKind;
arguments.main = main;
List<String> libraries = null;
try {