Skip to content

Commit 85366e2

Browse files
author
Abduqodiri Qurbonzoda
committed
Don't use infra in kotlin-multiplatform example project
1 parent 80065da commit 85366e2

File tree

1 file changed

+12
-32
lines changed

1 file changed

+12
-32
lines changed

examples/kotlin-multiplatform/build.gradle

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ allOpen {
1010
}
1111

1212
kotlin {
13-
infra {
14-
target('macosX64')
15-
target('linuxX64')
16-
target('mingwX64')
17-
}
18-
1913
jvm {
2014
compilations.all {
2115
kotlinOptions {
@@ -25,16 +19,16 @@ kotlin {
2519
}
2620

2721
js {
28-
nodejs {
29-
30-
}
22+
nodejs { }
3123
}
3224

25+
macosX64 { }
26+
linuxX64 { }
27+
mingwX64 { }
28+
3329
sourceSets.all {
3430
languageSettings {
3531
progressiveMode = true
36-
useExperimentalAnnotation("kotlin.Experimental")
37-
useExperimentalAnnotation('kotlin.ExperimentalUnsignedTypes')
3832
}
3933
}
4034

@@ -44,30 +38,17 @@ kotlin {
4438
implementation project(":kotlinx-benchmark-runtime")
4539
}
4640
}
47-
commonTest {
48-
dependencies {
49-
implementation 'org.jetbrains.kotlin:kotlin-test-common'
50-
implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
51-
}
52-
}
41+
5342
jvmMain {}
54-
jvmTest {
55-
dependencies {
56-
implementation 'org.jetbrains.kotlin:kotlin-test'
57-
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
58-
}
59-
}
43+
6044
jsMain {}
61-
jsTest {
62-
dependencies {
63-
implementation 'org.jetbrains.kotlin:kotlin-test-js'
64-
}
65-
}
6645

6746
nativeMain {
68-
dependsOn commonMain
69-
dependencies {
70-
}
47+
dependsOn(commonMain)
48+
49+
macosX64Main.dependsOn(it)
50+
linuxX64Main.dependsOn(it)
51+
mingwX64Main.dependsOn(it)
7152
}
7253
}
7354
}
@@ -119,7 +100,6 @@ benchmark {
119100
jmhVersion = "1.21"
120101
}
121102
register("js")
122-
register("native")
123103
register("macosX64")
124104
register("linuxX64")
125105
register("mingwX64")

0 commit comments

Comments
 (0)