visionforge/demo/muon-monitor/build.gradle.kts

58 lines
1.4 KiB
Plaintext
Raw Normal View History

2019-12-26 22:21:10 +03:00
plugins {
2022-08-12 22:16:06 +03:00
id("space.kscience.gradle.mpp")
2020-10-02 19:09:25 +03:00
application
2019-12-26 22:21:10 +03:00
}
group = "ru.mipt.npm"
2023-05-14 18:33:30 +03:00
val ktorVersion: String = spclibs.versions.ktor.get()
2019-12-30 11:40:37 +03:00
2020-10-02 19:09:25 +03:00
kscience {
2021-06-04 20:01:50 +03:00
useCoroutines()
2021-02-28 15:01:36 +03:00
useSerialization()
2023-05-14 18:33:30 +03:00
useKtor()
fullStack(
"muon-monitor.js",
jvmConfig = { withJava() },
jsConfig = { useCommonJs() }
) {
commonWebpackConfig {
cssSupport {
enabled.set(false)
}
}
}
2021-03-10 21:58:28 +03:00
2023-05-14 18:33:30 +03:00
commonMain {
implementation(projects.visionforgeSolid)
}
jvmMain {
implementation("org.apache.commons:commons-math3:3.6.1")
implementation("io.ktor:ktor-server-cio:${ktorVersion}")
implementation("io.ktor:ktor-server-content-negotiation:${ktorVersion}")
implementation("io.ktor:ktor-serialization-kotlinx-json:${ktorVersion}")
implementation("ch.qos.logback:logback-classic:1.2.11")
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.ui.ring)
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
}
2023-06-03 17:55:27 +03:00
kotlin.explicitApi = null
2019-12-26 22:21:10 +03:00
application {
2021-02-28 15:01:36 +03:00
mainClass.set("ru.mipt.npm.muon.monitor.server.MMServerKt")
2020-08-05 15:24:39 +03:00
}
2021-03-10 21:58:28 +03:00
//distributions {
// main {
// contents {
// from("$buildDir/libs") {
// rename("${rootProject.name}-jvm", rootProject.name)
// into("lib")
// }
// }
// }
//}