File tree 3 files changed +14
-15
lines changed
3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,13 @@ kotlin {
47
47
watchosSimulatorArm64()
48
48
49
49
sourceSets {
50
- val commonMain by getting {
50
+ commonMain {
51
51
dependencies {
52
52
api(project(" :kotlin-codepoints" ))
53
53
}
54
54
}
55
- val commonTest by getting {
55
+
56
+ commonTest {
56
57
dependencies {
57
58
implementation(kotlin(" test" ))
58
59
}
Original file line number Diff line number Diff line change 1
- import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
1
+ import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2
2
3
3
plugins {
4
4
alias(libs.plugins.kotlin.multiplatform)
@@ -48,23 +48,21 @@ kotlin {
48
48
watchosX64()
49
49
watchosSimulatorArm64()
50
50
51
+ @OptIn(ExperimentalKotlinGradlePluginApi ::class )
52
+ applyDefaultHierarchyTemplate {
53
+ group(" nonJvm" ) {
54
+ withJs()
55
+ withNative()
56
+ withWasm()
57
+ }
58
+ }
59
+
51
60
sourceSets {
52
- val commonMain by getting
53
- val commonTest by getting {
61
+ commonTest {
54
62
dependencies {
55
63
implementation(kotlin(" test" ))
56
64
}
57
65
}
58
-
59
- val commonImplementation by creating {
60
- dependsOn(commonMain)
61
- }
62
- }
63
-
64
- targets.onEach {
65
- if (it.platformType != KotlinPlatformType .jvm) {
66
- it.compilations.getByName(" main" ).source(sourceSets.getByName(" commonImplementation" ))
67
- }
68
66
}
69
67
}
70
68
File renamed without changes.
You can’t perform that action at this time.
0 commit comments