2020-03-23 22:19:52 +03:00
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories{
|
|
|
|
jcenter()
|
|
|
|
maven("https://kotlin.bintray.com/kotlinx")
|
|
|
|
maven("https://dl.bintray.com/kotlin/kotlin-eap")
|
|
|
|
maven("https://dl.bintray.com/mipt-npm/dataforge")
|
2020-10-02 19:09:25 +03:00
|
|
|
maven("https://dl.bintray.com/mipt-npm/kscience")
|
2020-03-23 22:19:52 +03:00
|
|
|
maven("https://dl.bintray.com/mipt-npm/dev")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2020-12-28 22:39:37 +03:00
|
|
|
|
|
|
|
js(IR) {
|
2021-05-10 22:07:16 +03:00
|
|
|
useCommonJs()
|
2020-12-28 22:39:37 +03:00
|
|
|
browser {
|
|
|
|
webpackTask {
|
|
|
|
this.outputFileName = "js/visionforge-playground.js"
|
|
|
|
}
|
2021-05-10 22:07:16 +03:00
|
|
|
commonWebpackConfig {
|
2021-08-14 21:31:36 +03:00
|
|
|
sourceMaps = true
|
2021-05-10 22:07:16 +03:00
|
|
|
cssSupport.enabled = false
|
|
|
|
}
|
2020-12-28 22:39:37 +03:00
|
|
|
}
|
|
|
|
binaries.executable()
|
|
|
|
}
|
|
|
|
|
2020-12-12 21:19:41 +03:00
|
|
|
jvm{
|
|
|
|
compilations.all {
|
|
|
|
kotlinOptions.jvmTarget = "11"
|
|
|
|
}
|
|
|
|
testRuns["test"].executionTask.configure {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
}
|
2020-12-28 22:39:37 +03:00
|
|
|
|
|
|
|
afterEvaluate {
|
2021-08-14 21:31:36 +03:00
|
|
|
val jsBrowserDistribution = tasks.getByName("jsBrowserDevelopmentExecutableDistribution")
|
2020-12-28 22:39:37 +03:00
|
|
|
|
|
|
|
tasks.getByName<ProcessResources>("jvmProcessResources") {
|
|
|
|
dependsOn(jsBrowserDistribution)
|
|
|
|
afterEvaluate {
|
|
|
|
from(jsBrowserDistribution)
|
|
|
|
}
|
2020-12-06 19:16:48 +03:00
|
|
|
}
|
2020-03-23 22:19:52 +03:00
|
|
|
}
|
|
|
|
|
2020-12-28 22:39:37 +03:00
|
|
|
|
2020-03-23 22:19:52 +03:00
|
|
|
sourceSets {
|
2020-12-28 22:39:37 +03:00
|
|
|
val commonMain by getting {
|
2020-03-23 22:19:52 +03:00
|
|
|
dependencies {
|
2021-02-23 21:47:18 +03:00
|
|
|
api(project(":visionforge-solid"))
|
|
|
|
api(project(":visionforge-gdml"))
|
|
|
|
api(project(":visionforge-plotly"))
|
2020-12-06 19:16:48 +03:00
|
|
|
}
|
|
|
|
}
|
2020-12-28 22:39:37 +03:00
|
|
|
|
2020-12-06 19:16:48 +03:00
|
|
|
val jsMain by getting{
|
|
|
|
dependencies {
|
2021-05-10 22:07:16 +03:00
|
|
|
implementation(project(":ui:ring"))
|
2021-02-23 21:47:18 +03:00
|
|
|
api(project(":visionforge-threejs"))
|
2020-12-06 19:16:48 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val jvmMain by getting{
|
|
|
|
dependencies {
|
2021-02-23 21:47:18 +03:00
|
|
|
api(project(":visionforge-server"))
|
2021-08-07 11:27:57 +03:00
|
|
|
api(project(":visionforge-markdown"))
|
2021-03-07 23:00:19 +03:00
|
|
|
api("ch.qos.logback:logback-classic:1.2.3")
|
2020-12-06 19:16:48 +03:00
|
|
|
implementation("com.github.Ricky12Awesome:json-schema-serialization:0.6.6")
|
2020-03-23 22:19:52 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|