2020-05-17 19:00:14 +03:00
|
|
|
import scientifik.DependencyConfiguration
|
|
|
|
import scientifik.FXModule
|
|
|
|
import scientifik.useFx
|
2019-12-22 20:56:19 +03:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("scientifik.mpp")
|
|
|
|
id("application")
|
|
|
|
}
|
|
|
|
|
2020-03-16 22:24:57 +03:00
|
|
|
val fxVersion: String by rootProject.extra
|
2020-05-16 19:26:28 +03:00
|
|
|
useFx(FXModule.CONTROLS, version = fxVersion, configuration = DependencyConfiguration.IMPLEMENTATION)
|
2020-03-16 22:24:57 +03:00
|
|
|
|
2019-12-22 20:56:19 +03:00
|
|
|
kotlin {
|
|
|
|
|
|
|
|
jvm {
|
|
|
|
withJava()
|
|
|
|
}
|
|
|
|
|
|
|
|
js {
|
2020-05-16 19:26:28 +03:00
|
|
|
useCommonJs()
|
2019-12-22 20:56:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2020-08-05 22:03:47 +03:00
|
|
|
implementation(project(":visionforge-spatial"))
|
|
|
|
implementation(project(":visionforge-gdml"))
|
2020-05-16 19:26:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jsMain{
|
|
|
|
dependencies {
|
|
|
|
implementation(project(":ui:bootstrap"))
|
|
|
|
implementation(npm("react-file-drop", "3.0.6"))
|
2019-12-22 20:56:19 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
2019-12-24 14:14:10 +03:00
|
|
|
mainClassName = "hep.dataforge.vis.spatial.gdml.demo.GDMLDemoAppKt"
|
2020-04-13 19:24:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
val convertGdmlToJson by tasks.creating(JavaExec::class) {
|
|
|
|
group = "application"
|
|
|
|
classpath = sourceSets["main"].runtimeClasspath
|
|
|
|
main = "hep.dataforge.vis.spatial.gdml.demo.SaveToJsonKt"
|
2019-12-22 20:56:19 +03:00
|
|
|
}
|