[Gradle] Fix warnings in KotlinWebpack

^KT-56904 In Progress
This commit is contained in:
Yahor Berdnikau
2024-02-02 19:00:53 +01:00
committed by Space Team
parent ac8edc168d
commit 6404cede07
@@ -51,7 +51,7 @@ abstract class KotlinWebpack
constructor( constructor(
@Internal @Internal
@Transient @Transient
override val compilation: KotlinJsIrCompilation, final override val compilation: KotlinJsIrCompilation,
private val objects: ObjectFactory, private val objects: ObjectFactory,
) : DefaultTask(), RequiresNpmDependencies, WebpackRulesDsl, UsesBuildMetricsService { ) : DefaultTask(), RequiresNpmDependencies, WebpackRulesDsl, UsesBuildMetricsService {
@Transient @Transient
@@ -76,7 +76,7 @@ constructor(
val compilationId: String by lazy { val compilationId: String by lazy {
compilation.let { compilation.let {
val target = it.target val target = it.target
target.project.path + "@" + target.name + ":" + it.compilationPurpose target.project.path + "@" + target.name + ":" + it.compilationName
} }
} }
@@ -122,7 +122,7 @@ constructor(
} }
init { init {
onlyIf { this.onlyIf {
entry.get().asFile.exists() entry.get().asFile.exists()
} }
} }