File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed 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,22 +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
61
commonTest {
53
62
dependencies {
54
63
implementation(kotlin(" test" ))
55
64
}
56
65
}
57
-
58
- val nonJvmMain by creating {
59
- dependsOn(commonMain.get())
60
- }
61
- }
62
-
63
- targets.onEach {
64
- if (it.platformType != KotlinPlatformType .jvm) {
65
- it.compilations.getByName(" main" ).source(sourceSets.getByName(" nonJvmMain" ))
66
- }
67
66
}
68
67
}
69
68
You can’t perform that action at this time.
0 commit comments