62 lines
1.3 KiB
Plaintext
62 lines
1.3 KiB
Plaintext
import org.openjfx.gradle.JavaFXOptions
|
|
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")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClassName = "ru.mipt.npm.muon.monitor.server/MMServerKt"
|
|
}
|
|
|
|
configure<JavaFXOptions> {
|
|
modules("javafx.controls")
|
|
} |