Fix compilation of kotlin-gradle-plugin
This commit is contained in:
+4
-4
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user