Wolfgang
05/09/2021, 7:15 PMGradle detected a problem with the following location: '/workspace/build/distributions/myproject.js'. Reason: Task ':jvmJar' uses this output of task ':jsBrowserProductionWebpack' without declaring an explicit or implicit dependency
Shouldnt this dependsOn declare a dependency?
tasks.getByName<Jar>("jvmJar") {
val taskName = if (project.hasProperty("isProduction")) {
"jsBrowserProductionWebpack"
} else {
"jsBrowserDevelopmentWebpack"
}
val webpackTask = tasks.getByName<KotlinWebpack>(taskName)
dependsOn(webpackTask) // make sure JS gets compiled first