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)
open fun setupCompilerArgs(args: T, defaultsOnly: Boolean = false) {
coroutines.let {
args.coroutinesEnable = it == Coroutines.ENABLE
args.coroutinesWarn = it == Coroutines.WARN
args.coroutinesError = it == Coroutines.ERROR
args.coroutinesState = when (coroutines) {
Coroutines.ENABLE -> CommonCompilerArguments.ENABLE
Coroutines.WARN -> CommonCompilerArguments.WARN
Coroutines.ERROR -> CommonCompilerArguments.ERROR
}
if (project.logger.isDebugEnabled) {