Enable resources processing for Kotlin/JS target in MPP
Issue #KT-28363 Fixed
This commit is contained in:
+1
-1
@@ -190,7 +190,7 @@ class NewMultiplatformIT : BaseGradleIT() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testResourceProcessing() = with(Project("sample-lib", gradleVersion, "new-mpp-lib-and-app")) {
|
fun testResourceProcessing() = with(Project("sample-lib", gradleVersion, "new-mpp-lib-and-app")) {
|
||||||
val targetsWithResources = listOf("jvm6", "wasm32", nativeHostTargetName)
|
val targetsWithResources = listOf("jvm6", "nodeJs", "wasm32", nativeHostTargetName)
|
||||||
val processResourcesTasks =
|
val processResourcesTasks =
|
||||||
targetsWithResources.map { ":${it}ProcessResources" }
|
targetsWithResources.map { ":${it}ProcessResources" }
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -263,7 +263,10 @@ class KotlinJvmAndroidCompilation(
|
|||||||
class KotlinJsCompilation(
|
class KotlinJsCompilation(
|
||||||
target: KotlinTarget,
|
target: KotlinTarget,
|
||||||
name: String
|
name: String
|
||||||
) : AbstractKotlinCompilationToRunnableFiles<KotlinJsOptions>(target, name) {
|
) : AbstractKotlinCompilationToRunnableFiles<KotlinJsOptions>(target, name), KotlinCompilationWithResources<KotlinJsOptions> {
|
||||||
|
override val processResourcesTaskName: String
|
||||||
|
get() = disambiguateName("processResources")
|
||||||
|
|
||||||
override val compileKotlinTask: Kotlin2JsCompile
|
override val compileKotlinTask: Kotlin2JsCompile
|
||||||
get() = super.compileKotlinTask as Kotlin2JsCompile
|
get() = super.compileKotlinTask as Kotlin2JsCompile
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user