Browse Source

Introduce task copySkikoResources

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

14
web/core/build.gradle.kts

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

Loading…
Cancel
Save