diff --git a/kobalt/wrapper/kobalt-wrapper.properties b/kobalt/wrapper/kobalt-wrapper.properties index 13f99ced..401bc33c 100644 --- a/kobalt/wrapper/kobalt-wrapper.properties +++ b/kobalt/wrapper/kobalt-wrapper.properties @@ -1 +1 @@ -kobalt.version=1.0.73 \ No newline at end of file +kobalt.version=1.0.73 diff --git a/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinCompiler.kt b/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinCompiler.kt index b14244c3..93ad5601 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinCompiler.kt @@ -421,8 +421,10 @@ class KotlinCompiler @Inject constructor( val info = CompilerActionInfo(project?.directory, dependencies, sourceFiles, listOf("kt"), outputDir, args, friendPaths, context?.internalContext?.forceRecompile ?: false, compilerSeparateProcess) - return jvmCompiler.doCompile(project, context, compilerAction, info, - if (context != null) compilerUtils.sourceCompilerFlags(project, context, info) else emptyList()) + val compilerFlags = + if (context != null) compilerUtils.sourceCompilerFlags(project, context, info) + else emptyList() + return jvmCompiler.doCompile(project, context, compilerAction, info, compilerFlags) } }