[Gradle, JS] Compatibility with lower than 4.9

This commit is contained in:
Ilya Goncharov
2020-02-05 17:55:30 +03:00
parent 0129b71cfe
commit 196907b2ef
2 changed files with 2 additions and 2 deletions
@@ -96,7 +96,7 @@ abstract class KotlinJsIrSubTarget(
testJs.group = LifecycleBasePlugin.VERIFICATION_GROUP
testJs.description = testTaskDescription
testJs.inputFileProperty.set(compilation.developmentLinkTask.flatMap { it.outputFileProperty })
testJs.inputFileProperty.set(compilation.developmentLinkTask.map { it.outputFileProperty.get() })
testJs.dependsOn(nodeJs.npmInstallTask, nodeJs.nodeJsSetupTask)
@@ -34,7 +34,7 @@ open class KotlinNodeJsIr @Inject constructor(target: KotlinJsIrTarget) :
compilation: KotlinJsIrCompilation
) {
val runTaskHolder = NodeJsExec.create(compilation, disambiguateCamelCased(RUN_TASK_NAME)) {
inputFileProperty.set(compilation.developmentLinkTask.flatMap { it.outputFileProperty })
inputFileProperty.set(compilation.developmentLinkTask.map { it.outputFileProperty.get() })
}
target.runTask.dependsOn(runTaskHolder)
}