2019-12-26 22:21:10 +03:00
|
|
|
plugins {
|
2022-08-12 22:16:06 +03:00
|
|
|
id("space.kscience.gradle.mpp")
|
2024-06-04 22:47:56 +03:00
|
|
|
alias(spclibs.plugins.compose.compiler)
|
|
|
|
alias(spclibs.plugins.compose.jb)
|
2024-04-20 12:13:43 +03:00
|
|
|
// alias(spclibs.plugins.ktor)
|
2020-10-02 19:09:25 +03:00
|
|
|
application
|
2019-12-26 22:21:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "ru.mipt.npm"
|
|
|
|
|
2019-12-30 11:40:37 +03:00
|
|
|
|
2020-10-02 19:09:25 +03:00
|
|
|
kscience {
|
2023-05-14 18:33:30 +03:00
|
|
|
fullStack(
|
|
|
|
"muon-monitor.js",
|
2024-04-20 12:13:43 +03:00
|
|
|
jvmConfig = {withJava()},
|
2023-12-27 12:01:55 +03:00
|
|
|
browserConfig = {
|
2024-04-20 12:13:43 +03:00
|
|
|
commonWebpackConfig {
|
|
|
|
cssSupport {
|
2023-12-27 12:01:55 +03:00
|
|
|
enabled = true
|
|
|
|
}
|
2024-04-20 12:13:43 +03:00
|
|
|
scssSupport {
|
2023-12-27 12:01:55 +03:00
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-12-18 09:41:05 +03:00
|
|
|
)
|
2021-03-10 21:58:28 +03:00
|
|
|
|
2024-04-20 12:13:43 +03:00
|
|
|
useCoroutines()
|
|
|
|
useSerialization()
|
|
|
|
useKtor()
|
|
|
|
|
2023-05-14 18:33:30 +03:00
|
|
|
commonMain {
|
|
|
|
implementation(projects.visionforgeSolid)
|
2024-02-16 18:21:09 +03:00
|
|
|
implementation(projects.visionforgeComposeHtml)
|
2023-05-14 18:33:30 +03:00
|
|
|
}
|
|
|
|
jvmMain {
|
|
|
|
implementation("org.apache.commons:commons-math3:3.6.1")
|
2024-04-20 12:13:43 +03:00
|
|
|
implementation("io.ktor:ktor-server-cio")
|
|
|
|
implementation("io.ktor:ktor-server-content-negotiation")
|
|
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json")
|
|
|
|
implementation(spclibs.logback.classic)
|
2019-12-26 22:21:10 +03:00
|
|
|
}
|
2023-05-14 18:33:30 +03:00
|
|
|
jsMain {
|
2023-06-02 20:58:32 +03:00
|
|
|
implementation(projects.visionforgeThreejs)
|
2023-05-14 18:33:30 +03:00
|
|
|
//implementation(devNpm("webpack-bundle-analyzer", "4.4.0"))
|
|
|
|
}
|
2019-12-26 22:21:10 +03:00
|
|
|
}
|
2024-04-20 12:13:43 +03:00
|
|
|
kotlin {
|
2024-02-12 20:04:10 +03:00
|
|
|
explicitApi = null
|
|
|
|
}
|
2019-12-26 22:21:10 +03:00
|
|
|
|
2023-06-03 17:55:27 +03:00
|
|
|
|
2019-12-26 22:21:10 +03:00
|
|
|
application {
|
2024-04-20 12:13:43 +03:00
|
|
|
mainClass.set("ru.mipt.npm.muon.monitor.MMServerKt")
|
|
|
|
}
|