mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 10:37:05 +05:30
build: enable support for building with Java 17
This commit is contained in:
parent
8fbafa8d47
commit
66b391a2f2
3 changed files with 31 additions and 15 deletions
|
@ -8,8 +8,8 @@ plugins {
|
|||
}
|
||||
|
||||
kotlin {
|
||||
android { compilations.all { kotlinOptions.jvmTarget = "11" } }
|
||||
jvm("desktop") { compilations.all { kotlinOptions.jvmTarget = "11" } }
|
||||
android()
|
||||
jvm("desktop")
|
||||
sourceSets["commonMain"].apply {
|
||||
dependencies {
|
||||
api(compose.runtime)
|
||||
|
@ -31,11 +31,6 @@ kotlin {
|
|||
sourceSets["desktopMain"].apply { dependencies { implementation(libs.kamel.image) } }
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.freeCompilerArgs =
|
||||
kotlinOptions.freeCompilerArgs + listOf("-Xopt-in=kotlin.RequiresOptIn")
|
||||
}
|
||||
|
||||
android {
|
||||
buildFeatures { androidResources = true }
|
||||
compileSdk = 31
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue