Trying to get overall `build` working for Confetti...
# compose-web
j
Trying to get overall
build
working for Confetti (https://github.com/joreilly/Confetti) but getting following. The Compose for Web client in the project builds/runs fine but I guess
wasmJsJar
gets triggered as part of
build
task. Anyone aware of what cause of this is?
Copy code
* What went wrong:
A problem was found with the configuration of task ':compose-web:wasmJsJar' (type 'Jar').
  - Gradle detected a problem with the following location: '/Users/joreilly/dev/github/Confetti/compose-web/build/processedResources/wasmJs/main'.
    
    Reason: Task ':compose-web:wasmJsJar' uses this output of task ':compose-web:copyWasmResourcesWorkaround' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    
    Possible solutions:
      1. Declare task ':compose-web:copyWasmResourcesWorkaround' as an input of ':compose-web:wasmJsJar'.
      2. Declare an explicit dependency on ':compose-web:copyWasmResourcesWorkaround' from ':compose-web:wasmJsJar' using Task#dependsOn.
      3. Declare an explicit dependency on ':compose-web:copyWasmResourcesWorkaround' from ':compose-web:wasmJsJar' using Task#mustRunAfter.
cc @Ilya Goncharov [JB] re. issue running
build
for Confetti
@bashor sorry to ping you directly but just in case this rings a bell?
b
IDK 🤷‍♂️
Let’s wait Ilya, he is the best person to ask about it 🙂
j
actually @Ilya Goncharov [JB] I think you said the compose web stuff built ok for you?
i
It is build when I run
wasmJsBrowserDistribution
or when I run project via
wasmJsBrowserDevelopmentRun
🙂
What do you think about the patch to get rid of “workaround” task?