2021-11-27 22:03:10 +03:00
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
2023-01-24 12:08:29 +03:00
|
|
|
id("space.kscience.gradle.common")
|
2021-11-27 22:03:10 +03:00
|
|
|
`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()
|
|
|
|
}
|
|
|
|
}
|