Skip to content

Commit 42f729f

Browse files
authored
fix: make custom source sets depend on common (#45)
1 parent 88a0586 commit 42f729f

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

build-plugins/kmp-conventions/src/main/kotlin/aws/sdk/kotlin/gradle/kmp/ConfigureTargets.kt

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,29 @@ fun Project.configureKmpTargets() {
6868
// see https://kotlinlang.org/docs/multiplatform-hierarchy.html#see-the-full-hierarchy-template
6969
kmpExt.applyDefaultHierarchyTemplate {
7070
if (hasJvmAndNative) {
71-
group("jvmAndNative") {
72-
withJvm()
73-
withNative()
71+
common {
72+
group("jvmAndNative") {
73+
withJvm()
74+
withNative()
75+
}
7476
}
7577
}
7678

7779
if (hasWindows) {
78-
group("windows") {
79-
withMingw()
80+
common {
81+
group("windows") {
82+
withMingw()
83+
}
8084
}
8185
}
8286

8387
if (hasDesktop) {
84-
group("desktop") {
85-
withLinux()
86-
withMingw()
87-
withMacos()
88+
common {
89+
group("desktop") {
90+
withLinux()
91+
withMingw()
92+
withMacos()
93+
}
8894
}
8995
}
9096
}

0 commit comments

Comments
 (0)