2021-11-27 22:03:10 +03:00
|
|
|
plugins {
|
2022-06-07 12:44:30 +03:00
|
|
|
id("space.kscience.gradle.mpp")
|
2022-12-06 22:49:02 +03:00
|
|
|
id("org.jetbrains.compose")
|
2021-11-27 22:03:10 +03:00
|
|
|
`maven-publish`
|
|
|
|
}
|
|
|
|
|
2022-06-07 12:44:30 +03:00
|
|
|
val visionForgeVersion: String by rootProject.extra
|
|
|
|
|
2022-11-23 13:51:53 +03:00
|
|
|
val production: Boolean by rootProject.extra(true)
|
2021-11-27 22:03:10 +03:00
|
|
|
|
2023-10-09 13:35:39 +03:00
|
|
|
|
|
|
|
kscience {
|
|
|
|
fullStack("js/numass-web.js")
|
|
|
|
|
|
|
|
useSerialization {
|
|
|
|
json()
|
|
|
|
}
|
|
|
|
|
|
|
|
useContextReceivers()
|
|
|
|
useKtor()
|
|
|
|
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
implementation(project(":numass-data-model"))
|
|
|
|
implementation("space.kscience:visionforge-core:$visionForgeVersion")
|
|
|
|
implementation("space.kscience:visionforge-plotly:$visionForgeVersion")
|
2021-11-27 22:03:10 +03:00
|
|
|
}
|
|
|
|
}
|
2023-10-09 13:35:39 +03:00
|
|
|
}
|
2021-11-27 22:03:10 +03:00
|
|
|
|
2023-10-09 13:35:39 +03:00
|
|
|
kotlin{
|
|
|
|
sourceSets{
|
|
|
|
getByName("jvmMain"){
|
|
|
|
dependencies{
|
2023-01-24 21:07:04 +03:00
|
|
|
implementation(compose.runtime)
|
2021-11-27 22:03:10 +03:00
|
|
|
implementation(project(":numass-data-proto"))
|
2023-10-09 13:35:39 +03:00
|
|
|
implementation("io.ktor:ktor-server-cio")
|
|
|
|
implementation("io.ktor:ktor-server-html-builder")
|
2022-12-06 22:49:02 +03:00
|
|
|
implementation("space.kscience:visionforge-plotly:$visionForgeVersion")
|
|
|
|
}
|
|
|
|
}
|
2023-10-09 13:35:39 +03:00
|
|
|
getByName("jsMain"){
|
2022-12-06 22:49:02 +03:00
|
|
|
dependencies{
|
2023-10-09 13:35:39 +03:00
|
|
|
implementation(compose.html.core)
|
2021-11-27 22:03:10 +03:00
|
|
|
}
|
|
|
|
}
|
2022-06-07 12:44:30 +03:00
|
|
|
}
|
2023-10-09 13:35:39 +03:00
|
|
|
}
|