[Gradle] Fix warnings in NodeJsExec
^KT-56904 In Progress
This commit is contained in:
committed by
Space Team
parent
9589043a05
commit
07ae48d1a3
+3
-3
@@ -29,7 +29,7 @@ open class NodeJsExec
|
|||||||
constructor(
|
constructor(
|
||||||
@Internal
|
@Internal
|
||||||
@Transient
|
@Transient
|
||||||
override val compilation: KotlinJsIrCompilation,
|
final override val compilation: KotlinJsIrCompilation,
|
||||||
) : AbstractExecTask<NodeJsExec>(NodeJsExec::class.java), RequiresNpmDependencies {
|
) : AbstractExecTask<NodeJsExec>(NodeJsExec::class.java), RequiresNpmDependencies {
|
||||||
@Transient
|
@Transient
|
||||||
@get:Internal
|
@get:Internal
|
||||||
@@ -39,7 +39,7 @@ constructor(
|
|||||||
val npmProject = compilation.npmProject
|
val npmProject = compilation.npmProject
|
||||||
|
|
||||||
init {
|
init {
|
||||||
onlyIf {
|
this.onlyIf {
|
||||||
!inputFileProperty.isPresent || inputFileProperty.asFile.map {
|
!inputFileProperty.isPresent || inputFileProperty.asFile.map {
|
||||||
it.exists()
|
it.exists()
|
||||||
}.get()
|
}.get()
|
||||||
@@ -117,7 +117,7 @@ constructor(
|
|||||||
it.dependsOn(nodeJs.packageManagerExtension.map { it.postInstallTasks })
|
it.dependsOn(nodeJs.packageManagerExtension.map { it.postInstallTasks })
|
||||||
}
|
}
|
||||||
it.dependsOn(nodeJsTaskProviders.nodeJsSetupTaskProvider)
|
it.dependsOn(nodeJsTaskProviders.nodeJsSetupTaskProvider)
|
||||||
it.dependsOn(compilation.compileKotlinTaskProvider)
|
it.dependsOn(compilation.compileTaskProvider)
|
||||||
if (compilation.platformType == KotlinPlatformType.wasm) {
|
if (compilation.platformType == KotlinPlatformType.wasm) {
|
||||||
it.nodeArgs.addWasmExperimentalArguments()
|
it.nodeArgs.addWasmExperimentalArguments()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user