2021-03-07 19:22:30 +03:00
|
|
|
plugins {
|
2021-03-10 21:58:28 +03:00
|
|
|
id("ru.mipt.npm.gradle.mpp")
|
2021-03-07 19:22:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
description = "Jupyter api artifact for GDML rendering"
|
|
|
|
|
2021-07-10 16:51:57 +03:00
|
|
|
kotlin {
|
2021-03-10 21:58:28 +03:00
|
|
|
explicitApi = null
|
2021-07-10 16:51:57 +03:00
|
|
|
js {
|
2021-05-10 22:07:16 +03:00
|
|
|
useCommonJs()
|
2021-03-10 21:58:28 +03:00
|
|
|
browser {
|
|
|
|
webpackTask {
|
|
|
|
this.outputFileName = "js/gdml-jupyter.js"
|
|
|
|
}
|
2021-05-10 22:07:16 +03:00
|
|
|
commonWebpackConfig {
|
|
|
|
sourceMaps = false
|
|
|
|
cssSupport.enabled = false
|
|
|
|
}
|
2021-03-10 21:58:28 +03:00
|
|
|
}
|
|
|
|
binaries.executable()
|
|
|
|
}
|
|
|
|
|
|
|
|
afterEvaluate {
|
|
|
|
val jsBrowserDistribution by tasks.getting
|
|
|
|
|
|
|
|
tasks.getByName<ProcessResources>("jvmProcessResources") {
|
|
|
|
dependsOn(jsBrowserDistribution)
|
2021-07-10 16:51:57 +03:00
|
|
|
from(jsBrowserDistribution)
|
2021-03-10 21:58:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-10 16:51:57 +03:00
|
|
|
sourceSets {
|
2021-03-10 21:58:28 +03:00
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
api(project(":visionforge-solid"))
|
|
|
|
}
|
|
|
|
}
|
2021-07-10 16:51:57 +03:00
|
|
|
jvmMain {
|
2021-03-10 21:58:28 +03:00
|
|
|
dependencies {
|
|
|
|
implementation(project(":visionforge-gdml"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jsMain {
|
|
|
|
dependencies {
|
|
|
|
api(project(":visionforge-threejs"))
|
2021-05-10 22:07:16 +03:00
|
|
|
implementation(project(":ui:ring"))
|
2021-03-10 21:58:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2021-03-07 19:22:30 +03:00
|
|
|
}
|
|
|
|
|
2021-07-10 16:51:57 +03:00
|
|
|
kscience {
|
2021-06-29 11:49:41 +03:00
|
|
|
useJupyter()
|
|
|
|
}
|
|
|
|
|
2021-07-10 16:51:57 +03:00
|
|
|
readme {
|
2021-03-07 19:22:30 +03:00
|
|
|
maturity = ru.mipt.npm.gradle.Maturity.EXPERIMENTAL
|
2021-09-11 15:24:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named<org.jetbrains.kotlinx.jupyter.api.plugin.tasks.JupyterApiResourcesTask>("processJupyterApiResources") {
|
|
|
|
libraryProducers = listOf("space.kscience.visionforge.gdml.jupyter.GdmlForJupyter")
|
|
|
|
}
|