I have a multiplatform module that builds a server...
# multiplatform
r
I have a multiplatform module that builds a server into a jar for use in my android app module. on 1.6.20 i had a task that renames the built js in the output jar so i can reference it from a statoc index.html - but when I upgrade to 1.7.20 i get thefollowing error which i am not sure how to fix.
Querying the mapped value of map(map(task ':remote:jsBrowserDevelopmentWebpack' property 'entryProperty')) before task ':remote:processDceDevJsKotlinJs' has completed is not supported
so this is the task
Copy code
val outputJsLibName = "remote.js"
// include JS artifacts in any JAR we generate
tasks.getByName<Jar>("jvmJar") {
    val taskName = if (project.property("isProduction") == "true") {
        "jsBrowserProductionWebpack"
    } else {
        "jsBrowserDevelopmentWebpack"
    }
    val webpackTask = tasks.getByName<KotlinWebpack>(taskName)
    dependsOn(webpackTask) // make sure JS gets compiled first
    from(File(webpackTask.destinationDirectory, outputJsLibName))
}
possibly this isn't the right approach though - what is the best approach to reference a kotlin js lib from a server app?