visionforge/jupyter/visionforge-gdml-jupyter/build.gradle.kts
2021-09-11 15:24:52 +03:00

64 lines
1.4 KiB
Plaintext

plugins {
id("ru.mipt.npm.gradle.mpp")
}
description = "Jupyter api artifact for GDML rendering"
kotlin {
explicitApi = null
js {
useCommonJs()
browser {
webpackTask {
this.outputFileName = "js/gdml-jupyter.js"
}
commonWebpackConfig {
sourceMaps = false
cssSupport.enabled = false
}
}
binaries.executable()
}
afterEvaluate {
val jsBrowserDistribution by tasks.getting
tasks.getByName<ProcessResources>("jvmProcessResources") {
dependsOn(jsBrowserDistribution)
from(jsBrowserDistribution)
}
}
sourceSets {
commonMain {
dependencies {
api(project(":visionforge-solid"))
}
}
jvmMain {
dependencies {
implementation(project(":visionforge-gdml"))
}
}
jsMain {
dependencies {
api(project(":visionforge-threejs"))
implementation(project(":ui:ring"))
}
}
}
}
kscience {
useJupyter()
}
readme {
maturity = ru.mipt.npm.gradle.Maturity.EXPERIMENTAL
}
tasks.named<org.jetbrains.kotlinx.jupyter.api.plugin.tasks.JupyterApiResourcesTask>("processJupyterApiResources") {
libraryProducers = listOf("space.kscience.visionforge.gdml.jupyter.GdmlForJupyter")
}