numass/numass-data-server/build.gradle.kts
2021-11-27 22:03:10 +03:00

52 lines
1.1 KiB
Plaintext

plugins {
kotlin("multiplatform")
id("ru.mipt.npm.gradle.common")
`maven-publish`
}
val visionForgeVersion = "0.2.0-dev-24"
kotlin {
js{
browser {
webpackTask {
this.outputFileName = "js/numass-web.js"
}
}
binaries.executable()
}
afterEvaluate {
val jsBrowserDistribution by tasks.getting
tasks.getByName<ProcessResources>("jvmProcessResources") {
dependsOn(jsBrowserDistribution)
afterEvaluate {
from(jsBrowserDistribution)
}
}
}
sourceSets {
commonMain {
dependencies {
implementation(project(":numass-data-model"))
implementation("space.kscience:visionforge-plotly:$visionForgeVersion")
}
}
jvmMain {
dependencies {
implementation(project(":numass-data-proto"))
implementation("space.kscience:visionforge-server:$visionForgeVersion")
}
}
}
}
kscience{
useSerialization {
json()
}
}