[Gradle, JS] Compatibility with lower than 4.9
This commit is contained in:
+1
-1
@@ -96,7 +96,7 @@ abstract class KotlinJsIrSubTarget(
|
|||||||
testJs.group = LifecycleBasePlugin.VERIFICATION_GROUP
|
testJs.group = LifecycleBasePlugin.VERIFICATION_GROUP
|
||||||
testJs.description = testTaskDescription
|
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)
|
testJs.dependsOn(nodeJs.npmInstallTask, nodeJs.nodeJsSetupTask)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ open class KotlinNodeJsIr @Inject constructor(target: KotlinJsIrTarget) :
|
|||||||
compilation: KotlinJsIrCompilation
|
compilation: KotlinJsIrCompilation
|
||||||
) {
|
) {
|
||||||
val runTaskHolder = NodeJsExec.create(compilation, disambiguateCamelCased(RUN_TASK_NAME)) {
|
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)
|
target.runTask.dependsOn(runTaskHolder)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user