2022-07-16 21:34:19 +03:00
|
|
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
|
|
|
id("org.jetbrains.compose")
|
|
|
|
}
|
|
|
|
|
|
|
|
val ktorVersion: String by rootProject.extra
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm {
|
|
|
|
compilations.all {
|
|
|
|
kotlinOptions.jvmTarget = "11"
|
|
|
|
}
|
|
|
|
withJava()
|
|
|
|
}
|
|
|
|
sourceSets {
|
|
|
|
val jvmMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(projects.mapsKtCompose)
|
2022-12-27 11:51:14 +03:00
|
|
|
implementation(projects.mapsKtGeojson)
|
2022-07-16 21:34:19 +03:00
|
|
|
implementation(compose.desktop.currentOs)
|
2022-10-12 15:03:02 +03:00
|
|
|
implementation("io.ktor:ktor-client-cio")
|
2022-07-16 21:34:19 +03:00
|
|
|
implementation("ch.qos.logback:logback-classic:1.2.11")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val jvmTest by getting
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compose.desktop {
|
|
|
|
application {
|
|
|
|
mainClass = "MainKt"
|
|
|
|
nativeDistributions {
|
|
|
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
2022-07-23 10:27:58 +03:00
|
|
|
packageName = "maps-compose-demo"
|
2022-07-16 21:34:19 +03:00
|
|
|
packageVersion = "1.0.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|