Hello! I recently downloaded the Kotlin compose mu...
# multiplatform
j
Hello! I recently downloaded the Kotlin compose multiplatform template project, targeting: • android • iOS • desktop • server (with Ktor) However, I'm running into some JVM version issues with desktop and server, and unsure of how to resolve correctly in Gradle 🧵 ...
my local JDK is v20, and using that to run Gradle
I see that the composeApp build.gradle.kts specifies two things related to JVM version:
Copy code
kotlin {
    androidTarget {
        compilations.all {
            kotlinOptions {
                jvmTarget = "11"
            }
        }
    }
}
and
Copy code
android {
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_11
        targetCompatibility = JavaVersion.VERSION_11
    }
}
but nothing is set for the desktop app there. and nothing is set for the server app in its build.gradle.kts either
how can i set those same options (target v11) for the desktop app and the ktor server?
received the answer in #ktor:
Copy code
kotlin {
    jvmToolchain(11)
}