2021-03-07 19:22:30 +03:00
|
|
|
plugins {
|
2022-08-12 22:16:06 +03:00
|
|
|
id("space.kscience.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 {
|
2022-01-02 14:28:24 +03:00
|
|
|
implementation(projects.visionforgeSolid)
|
2022-01-07 12:29:43 +03:00
|
|
|
implementation(projects.jupyter)
|
2021-03-10 21:58:28 +03:00
|
|
|
}
|
|
|
|
}
|
2021-07-10 16:51:57 +03:00
|
|
|
jvmMain {
|
2021-03-10 21:58:28 +03:00
|
|
|
dependencies {
|
2022-01-02 14:28:24 +03:00
|
|
|
implementation(projects.visionforgeGdml)
|
2021-03-10 21:58:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jsMain {
|
|
|
|
dependencies {
|
2022-01-02 14:28:24 +03:00
|
|
|
implementation(projects.visionforgeThreejs)
|
|
|
|
implementation(projects.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-09-14 16:30:18 +03:00
|
|
|
jupyterLibrary("space.kscience.visionforge.gdml.jupyter.GdmlForJupyter")
|
2021-06-29 11:49:41 +03:00
|
|
|
}
|
|
|
|
|
2021-07-10 16:51:57 +03:00
|
|
|
readme {
|
2022-08-12 22:16:06 +03:00
|
|
|
maturity = space.kscience.gradle.Maturity.EXPERIMENTAL
|
2021-09-14 16:30:18 +03:00
|
|
|
}
|