2023-11-22 21:55:13 +03:00
|
|
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
2023-11-07 08:46:56 +03:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
|
|
|
|
|
2023-10-30 21:35:46 +03:00
|
|
|
plugins {
|
|
|
|
id("space.kscience.gradle.mpp")
|
2023-12-12 09:59:52 +03:00
|
|
|
id("org.jetbrains.compose") version "1.5.11"
|
2023-10-30 21:35:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
kscience {
|
2023-11-22 21:55:13 +03:00
|
|
|
jvm {
|
2023-11-05 10:18:26 +03:00
|
|
|
withJava()
|
|
|
|
}
|
2023-10-30 21:35:46 +03:00
|
|
|
useKtor()
|
2023-11-05 09:47:58 +03:00
|
|
|
useContextReceivers()
|
2023-10-30 21:35:46 +03:00
|
|
|
dependencies {
|
|
|
|
api(projects.controlsVision)
|
|
|
|
}
|
|
|
|
jvmMain {
|
|
|
|
implementation("io.ktor:ktor-server-cio")
|
|
|
|
implementation(spclibs.logback.classic)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-22 21:55:13 +03:00
|
|
|
kotlin {
|
|
|
|
sourceSets {
|
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.desktop.currentOs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-11-07 08:46:56 +03:00
|
|
|
}
|
|
|
|
|
2023-11-22 21:55:13 +03:00
|
|
|
//application {
|
|
|
|
// mainClass.set("space.kscience.controls.demo.constructor.MainKt")
|
|
|
|
//}
|
|
|
|
|
|
|
|
kotlin.explicitApi = ExplicitApiMode.Disabled
|
|
|
|
|
|
|
|
|
|
|
|
compose.desktop {
|
|
|
|
application {
|
|
|
|
mainClass = "space.kscience.controls.demo.constructor.MainKt"
|
|
|
|
|
|
|
|
nativeDistributions {
|
|
|
|
targetFormats(TargetFormat.Exe)
|
|
|
|
packageName = "PidConstructor"
|
|
|
|
packageVersion = "1.0.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|