2022-07-16 21:34:19 +03:00
|
|
|
import org.jetbrains.compose.compose
|
|
|
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
|
|
|
id("org.jetbrains.compose")
|
|
|
|
}
|
|
|
|
|
2022-07-23 10:27:58 +03:00
|
|
|
group = "center.sciprog"
|
|
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
|
|
}
|
2022-07-16 21:34:19 +03:00
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm {
|
|
|
|
compilations.all {
|
|
|
|
kotlinOptions.jvmTarget = "11"
|
|
|
|
}
|
|
|
|
withJava()
|
|
|
|
}
|
|
|
|
sourceSets {
|
2022-07-23 11:24:37 +03:00
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2022-07-23 10:27:58 +03:00
|
|
|
api("io.github.microutils:kotlin-logging:2.1.23")
|
|
|
|
api(compose.foundation)
|
|
|
|
}
|
|
|
|
}
|
2022-07-16 21:34:19 +03:00
|
|
|
val jvmMain by getting {
|
|
|
|
dependencies {
|
2022-07-23 10:27:58 +03:00
|
|
|
api(compose.desktop.currentOs)
|
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 = "compose-scheme"
|
2022-07-16 21:34:19 +03:00
|
|
|
packageVersion = "1.0.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|