Skip to content

Commit 7b0e8f4

Browse files
Abduqodiri Qurbonzodawoainikk
authored andcommitted
Create two js compilations instead of two js targets with different name
Fixes: Consumable configurations with identical capabilities within a project (other than the default configuration) must have unique attributes, but configuration ':examples:kotlin-multiplatform:jsIrBuiltInApiElements' and [configuration ':examples:kotlin-multiplatform:jsIrApiElements'] contain identical attribute sets.
1 parent 0c8a194 commit 7b0e8f4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

examples/kotlin-multiplatform/build.gradle

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ kotlin {
1717
jvm {
1818
compilations.create('benchmark') { associateWith(compilations.main) }
1919
}
20-
js('jsIr', IR) { nodejs() }
21-
js('jsIrBuiltIn', IR) { nodejs() }
20+
js(IR) {
21+
nodejs()
22+
compilations.create("defaultExecutor") { associateWith(compilations.main) }
23+
compilations.create("builtInExecutor") { associateWith(compilations.main) }
24+
}
2225
wasm('wasmJs') { d8() }
2326
if (HostManager.host == KonanTarget.MACOS_X64.INSTANCE) macosX64('native')
2427
if (HostManager.host == KonanTarget.MACOS_ARM64.INSTANCE) macosArm64('native')
@@ -43,8 +46,8 @@ kotlin {
4346
wasmJsMain {}
4447

4548
jsMain {
46-
jsIrMain.dependsOn(it)
47-
jsIrBuiltInMain.dependsOn(it)
49+
jsDefaultExecutor.dependsOn(it)
50+
jsBuiltInExecutor.dependsOn(it)
4851
}
4952

5053
nativeMain {
@@ -113,8 +116,8 @@ benchmark {
113116
register("jvmBenchmark") {
114117
jmhVersion = "1.21"
115118
}
116-
register("jsIr")
117-
register("jsIrBuiltIn") {
119+
register("jsDefaultExecutor")
120+
register("jsBuiltInExecutor") {
118121
jsBenchmarksExecutor = JsBenchmarksExecutor.BuiltIn
119122
}
120123
register("wasmJs")

0 commit comments

Comments
 (0)