forked from kscience/visionforge
69 lines
1.6 KiB
Plaintext
69 lines
1.6 KiB
Plaintext
import scientifik.useSerialization
|
|
|
|
plugins {
|
|
id("scientifik.mpp")
|
|
//id("org.openjfx.javafxplugin")
|
|
id("application")
|
|
}
|
|
|
|
group = "ru.mipt.npm"
|
|
|
|
useSerialization()
|
|
|
|
val ktor_version = "1.3.0-rc"
|
|
|
|
kotlin {
|
|
|
|
js {
|
|
browser {
|
|
webpackTask {
|
|
sourceMaps = true
|
|
}
|
|
}
|
|
}
|
|
|
|
val installJS = tasks.getByName<Copy>("installJsDist")
|
|
|
|
jvm {
|
|
withJava()
|
|
compilations.findByName("main").apply {
|
|
tasks.getByName<ProcessResources>("jvmProcessResources") {
|
|
dependsOn(installJS)
|
|
afterEvaluate {
|
|
from(installJS.destinationDir)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
commonMain {
|
|
dependencies {
|
|
implementation(project(":dataforge-vis-spatial"))
|
|
}
|
|
}
|
|
jvmMain {
|
|
dependencies {
|
|
implementation("org.apache.commons:commons-math3:3.6.1")
|
|
implementation("io.ktor:ktor-server-cio:$ktor_version")
|
|
implementation("io.ktor:ktor-serialization:$ktor_version")
|
|
}
|
|
}
|
|
jsMain{
|
|
dependencies{
|
|
implementation("io.ktor:ktor-client-js:$ktor_version")
|
|
implementation("io.ktor:ktor-client-serialization-js:$ktor_version")
|
|
implementation(npm("text-encoding"))
|
|
implementation(npm("abort-controller"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClassName = "ru.mipt.npm.muon.monitor.server/MMServerKt"
|
|
}
|
|
|
|
//configure<JavaFXOptions> {
|
|
// modules("javafx.controls")
|
|
//} |