Anyone else is experiencing webpack production tas...
# javascript
r
Anyone else is experiencing webpack production task not being executed? Even after clean build the
jsBrowserProductionWebpack
task is somehow skipped.
Running gradle with
--info
shows this:
Copy code
> Task :examples:hello-world:jsBrowserProductionWebpack FROM-CACHE
Build cache key for task ':examples:hello-world:jsBrowserProductionWebpack' is 04688503566953bbe1c2ae2e010ccccc
Task ':examples:hello-world:jsBrowserProductionWebpack' is not up-to-date because:
  Output property 'outputDirectory' file /home/rjaros/git/kilua/examples/hello-world/build/kotlin-webpack/js/productionExecutable has been removed.
Loaded cache entry for task ':examples:hello-world:jsBrowserProductionWebpack' with cache key 04688503566953bbe1c2ae2e010ccccc
Resolve mutations for :examples:hello-world:jsBrowserDistribution (Thread[#10101,Execution worker Thread 3,5,main]) started.
:examples:hello-world:jsBrowserDistribution (Thread[#10101,Execution worker Thread 3,5,main]) started.
It's reported as not up-to-date but still is not executed. The production bundle is not created.
Setting
org.gradle.caching=false
fixes the issue, but makes build process very slow.
I'm using Kotlin 2.2.20-RC and Gradle 9.0
The problem somehow appears only in my complex project (with some apps inside an
example
subdirectory). It doesn't appear with simple projects.
It fixed itself then.