Skip to content

Commit b0cfca5

Browse files
committed
Refactor desktop sample build configuration to use standard JVM target
- Renamed the JVM target from `"desktop"` to the default `jvm()`. - Renamed the source set from `desktopMain` to `jvmMain` to match the default Kotlin Multiplatform naming convention. - Added the `compose.desktop.currentOs` dependency to `jvmMain`.
1 parent a20b560 commit b0cfca5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sample/desktop/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ plugins {
99

1010
kotlin {
1111
jvmToolchain(libs.versions.jdk.get().toInt())
12-
jvm("desktop") {
12+
jvm {
1313
compilerOptions.jvmTarget = JvmTarget.fromTarget(libs.versions.jdk.get())
1414
}
1515
sourceSets {
16-
val desktopMain by getting {
16+
val jvmMain by getting {
1717
dependencies {
1818
implementation(projects.sample.shared)
1919
implementation(libs.compose.desktop)
20+
implementation(compose.desktop.currentOs)
2021
}
2122
}
2223
}

0 commit comments

Comments
 (0)