[Gradle, JS] Empty compiler plugin classpath for KotlinJsIrLink

^KT-42245 fixed
This commit is contained in:
Ilya Goncharov
2020-09-25 14:06:57 +03:00
parent cebbd21a1e
commit 522fdb3e59
2 changed files with 5 additions and 1 deletions
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.gradle.targets.js.ir
import org.gradle.api.file.FileCollection
import org.gradle.api.file.FileTree
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.tasks.*
@@ -21,6 +22,9 @@ import java.io.File
@CacheableTask
open class KotlinJsIrLink : Kotlin2JsCompile() {
// Link tasks are not affected by compiler plugin
override val pluginClasspath: FileCollection = project.objects.fileCollection()
@Input
lateinit var mode: KotlinJsBinaryMode
@@ -213,7 +213,7 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractKo
@get:InputFiles
@get:Classpath
val pluginClasspath: FileCollection = project.configurations.getByName(PLUGIN_CLASSPATH_CONFIGURATION_NAME)
open val pluginClasspath: FileCollection = project.configurations.getByName(PLUGIN_CLASSPATH_CONFIGURATION_NAME)
@get:Internal
internal val pluginOptions = CompilerPluginOptions()