2022-08-12 22:16:06 +03:00
|
|
|
import space.kscience.gradle.DependencyConfiguration
|
|
|
|
import space.kscience.gradle.FXModule
|
2019-12-22 20:56:19 +03:00
|
|
|
|
|
|
|
plugins {
|
2022-08-12 22:16:06 +03:00
|
|
|
id("space.kscience.gradle.mpp")
|
2020-10-02 19:09:25 +03:00
|
|
|
application
|
2019-12-22 20:56:19 +03:00
|
|
|
}
|
|
|
|
|
2020-10-02 19:09:25 +03:00
|
|
|
kscience {
|
|
|
|
val fxVersion: String by rootProject.extra
|
|
|
|
useFx(FXModule.CONTROLS, version = fxVersion, configuration = DependencyConfiguration.IMPLEMENTATION)
|
|
|
|
application()
|
|
|
|
}
|
2020-03-16 22:24:57 +03:00
|
|
|
|
2019-12-22 20:56:19 +03:00
|
|
|
kotlin {
|
|
|
|
jvm {
|
2020-10-28 22:11:28 +03:00
|
|
|
withJava()
|
2019-12-22 20:56:19 +03:00
|
|
|
}
|
2022-01-07 12:29:43 +03:00
|
|
|
|
2021-08-08 22:17:50 +03:00
|
|
|
js {
|
2021-05-09 15:49:18 +03:00
|
|
|
useCommonJs()
|
|
|
|
browser {
|
|
|
|
commonWebpackConfig {
|
|
|
|
cssSupport.enabled = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-01-07 12:29:43 +03:00
|
|
|
|
2019-12-22 20:56:19 +03:00
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2020-08-08 09:40:07 +03:00
|
|
|
implementation(project(":visionforge-solid"))
|
2020-08-05 22:03:47 +03:00
|
|
|
implementation(project(":visionforge-gdml"))
|
2020-05-16 19:26:28 +03:00
|
|
|
}
|
|
|
|
}
|
2020-11-27 22:43:48 +03:00
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
2020-11-21 10:56:07 +03:00
|
|
|
implementation(project(":visionforge-fx"))
|
2022-08-12 22:16:06 +03:00
|
|
|
implementation("ch.qos.logback:logback-classic:1.2.11")
|
2020-11-21 10:56:07 +03:00
|
|
|
}
|
|
|
|
}
|
2020-10-02 19:09:25 +03:00
|
|
|
jsMain {
|
2020-05-16 19:26:28 +03:00
|
|
|
dependencies {
|
2021-05-09 15:49:18 +03:00
|
|
|
implementation(project(":ui:ring"))
|
2020-11-21 11:17:18 +03:00
|
|
|
implementation(project(":visionforge-threejs"))
|
2020-05-16 19:26:28 +03:00
|
|
|
implementation(npm("react-file-drop", "3.0.6"))
|
2019-12-22 20:56:19 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
2021-03-07 16:19:43 +03:00
|
|
|
mainClass.set("space.kscience.visionforge.gdml.demo.GdmlFxDemoAppKt")
|
2020-04-13 19:24:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
val convertGdmlToJson by tasks.creating(JavaExec::class) {
|
|
|
|
group = "application"
|
|
|
|
classpath = sourceSets["main"].runtimeClasspath
|
2021-08-08 22:17:50 +03:00
|
|
|
mainClass.set("space.kscience.dataforge.vis.spatial.gdml.demo.SaveToJsonKt")
|
2019-12-22 20:56:19 +03:00
|
|
|
}
|