Kapt: allow to use Kapt from compileBunchOfSources()

This commit is contained in:
Yan Zhulanow
2016-09-09 16:37:27 +03:00
parent fbf44aa9be
commit 015130832b
2 changed files with 34 additions and 24 deletions
@@ -180,7 +180,7 @@ public class ExecuteKotlinScriptMojo extends AbstractMojo {
KotlinCoreEnvironment environment = KotlinCoreEnvironment.createForProduction(rootDisposable, configuration, EnvironmentConfigFiles.JVM_CONFIG_FILES);
GenerationState state = KotlinToJVMBytecodeCompiler.INSTANCE.analyzeAndGenerate(environment);
GenerationState state = KotlinToJVMBytecodeCompiler.INSTANCE.analyzeAndGenerate(environment, configuration);
if (state == null) {
throw new ScriptExecutionException(scriptFile, "compile error");