JoakimForslund
02/27/2019, 2:28 PMtask assembleWeb(type: Sync) {
println(configurations)
configurations.commonMainCompileOnly.each { File file ->
from(zipTree(file.absolutePath), {
includeEmptyDirs = false
include { fileTreeElement ->
def path = fileTreeElement.path
path.endsWith(".js") && (path.startsWith("META-INF/resources/") ||
!path.startsWith("META-INF/"))
}
})
}
from compileKotlin2Js.destinationDir
into "${projectDir}/web"
dependsOn classes
}
assemble.dependsOn assembleWeb
on a multiplatform project. Since im not using kotlin2js
but the multiplatform plugin i'm receiving:
Could not get unknown property 'compileKotlin2Js' for task ':assembleWeb' of type org.gradle.api.tasks.Sync.
Anyone has any idea how to solve it?JoakimForslund
02/27/2019, 2:39 PMcompileKotlinJs
in the multiplatform or currentlyJoakimForslund
02/27/2019, 2:48 PMRobert Jaros
02/27/2019, 2:53 PMRobert Jaros
02/27/2019, 2:55 PMRobert Jaros
02/27/2019, 2:56 PMJoakimForslund
02/27/2019, 2:58 PM