2022-07-09 17:47:42 +03:00
|
|
|
import org.jetbrains.compose.compose
|
|
|
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
|
|
|
id("org.jetbrains.compose")
|
2022-07-11 14:46:11 +03:00
|
|
|
`maven-publish`
|
2022-07-09 17:47:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "center.sciptog"
|
|
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
|
|
}
|
|
|
|
|
|
|
|
val ktorVersion by extra("2.0.3")
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm {
|
|
|
|
compilations.all {
|
|
|
|
kotlinOptions.jvmTarget = "11"
|
|
|
|
}
|
|
|
|
withJava()
|
|
|
|
}
|
|
|
|
sourceSets {
|
|
|
|
commonMain{
|
|
|
|
dependencies{
|
|
|
|
api(compose.runtime)
|
|
|
|
api(compose.foundation)
|
|
|
|
api(compose.material)
|
2022-07-11 14:46:11 +03:00
|
|
|
api("io.ktor:ktor-client-core:$ktorVersion")
|
2022-07-09 17:47:42 +03:00
|
|
|
implementation("io.ktor:ktor-client-cio:$ktorVersion")
|
|
|
|
implementation("io.github.microutils:kotlin-logging:2.1.23")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val jvmMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.desktop.currentOs)
|
2022-07-11 14:46:11 +03:00
|
|
|
implementation("ch.qos.logback:logback-classic:1.2.11")
|
2022-07-09 17:47:42 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
val jvmTest by getting
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compose.desktop {
|
|
|
|
application {
|
|
|
|
mainClass = "MainKt"
|
|
|
|
nativeDistributions {
|
|
|
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
|
|
|
packageName = "maps-kt-compose"
|
|
|
|
packageVersion = "1.0.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|