59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
import org.jetbrains.compose.compose
|
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
|
|
plugins {
|
|
kotlin("multiplatform")
|
|
id("org.jetbrains.compose")
|
|
`maven-publish`
|
|
}
|
|
|
|
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)
|
|
api("io.ktor:ktor-client-core:$ktorVersion")
|
|
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)
|
|
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)
|
|
packageName = "maps-kt-compose"
|
|
packageVersion = "1.0.0"
|
|
}
|
|
}
|
|
}
|