Browse Source

Introduce task copySkikoResources

with_mpp_example
Shagen Ogandzhanian 3 years ago
parent
commit
849edd2ec1
  1. 16
      web/core/build.gradle.kts

16
web/core/build.gradle.kts

@ -5,18 +5,18 @@ plugins {
id("org.jetbrains.compose") id("org.jetbrains.compose")
} }
val skiko by configurations.creating val skikoWasm by configurations.creating
dependencies { dependencies {
skiko("org.jetbrains.skiko:skiko:0.0.0-SNAPSHOT") skikoWasm("org.jetbrains.skiko:skiko-js-wasm-runtime:0.0.0-SNAPSHOT")
} }
tasks.register<Copy>("copySkiko") { val copySkikoResources = tasks.register("copySkikoResources", Copy::class) {
val skikoJar = skiko.find { from(skikoWasm.map { zipTree(it) }) {
it.name == "skiko-jvm-0.0.0-SNAPSHOT.jar" include("skiko.wasm")
} include("skiko.js")
from(zipTree(skikoJar)) }
into("${project.buildDir}/skiko") destinationDir = file("${project.buildDir}/skiko")
} }
kotlin { kotlin {

Loading…
Cancel
Save