visionforge/demo/sat-demo/build.gradle.kts

67 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-11-07 17:32:18 +03:00
plugins {
id("ru.mipt.npm.mpp")
2020-12-06 19:16:48 +03:00
application
2020-11-07 17:32:18 +03:00
}
2020-12-06 19:16:48 +03:00
group = "ru.mipt.npm"
//val kvisionVersion: String = "3.16.2"
2020-11-07 17:32:18 +03:00
kscience{
2020-12-06 19:16:48 +03:00
useSerialization{
json()
}
2020-11-07 17:32:18 +03:00
application()
}
2020-12-06 19:16:48 +03:00
val ktorVersion: String by rootProject.extra
2020-11-07 17:32:18 +03:00
kotlin {
2020-12-12 10:44:45 +03:00
js{
browser {
webpackTask {
this.outputFileName = "visionforge-solid.js"
}
}
}
2020-12-06 19:16:48 +03:00
afterEvaluate {
val jsBrowserDistribution by tasks.getting
jvm {
withJava()
compilations[org.jetbrains.kotlin.gradle.plugin.KotlinCompilation.Companion.MAIN_COMPILATION_NAME]?.apply {
tasks.getByName<ProcessResources>(processResourcesTaskName) {
dependsOn(jsBrowserDistribution)
afterEvaluate {
from(jsBrowserDistribution)
}
}
}
}
}
2020-11-07 17:32:18 +03:00
sourceSets {
commonMain {
dependencies {
implementation(project(":visionforge-solid"))
}
}
2020-12-06 19:16:48 +03:00
jvmMain {
dependencies {
implementation(project(":visionforge-server"))
}
}
2020-11-07 17:32:18 +03:00
jsMain {
dependencies {
2020-11-21 11:17:18 +03:00
implementation(project(":visionforge-threejs"))
2020-11-07 17:32:18 +03:00
}
}
}
2020-12-06 19:16:48 +03:00
}
application {
mainClass.set("ru.mipt.npm.sat.SatServerKt")
}