Fix compilation of kotlin-gradle-plugin

This commit is contained in:
Alexander Udalov
2017-04-17 11:51:08 +03:00
parent 10f2e9d33a
commit ae1fb16fe8
@@ -145,10 +145,10 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractCo
internal abstract fun callCompiler(args: T, sourceRoots: SourceRoots, changedFiles: ChangedFiles) internal abstract fun callCompiler(args: T, sourceRoots: SourceRoots, changedFiles: ChangedFiles)
open fun setupCompilerArgs(args: T, defaultsOnly: Boolean = false) { open fun setupCompilerArgs(args: T, defaultsOnly: Boolean = false) {
coroutines.let { args.coroutinesState = when (coroutines) {
args.coroutinesEnable = it == Coroutines.ENABLE Coroutines.ENABLE -> CommonCompilerArguments.ENABLE
args.coroutinesWarn = it == Coroutines.WARN Coroutines.WARN -> CommonCompilerArguments.WARN
args.coroutinesError = it == Coroutines.ERROR Coroutines.ERROR -> CommonCompilerArguments.ERROR
} }
if (project.logger.isDebugEnabled) { if (project.logger.isDebugEnabled) {