Running into an error with gradle: ```FAILURE: Bui...
# gradle
m
Running into an error with gradle:
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':wiki-frontend-admin:jsDevelopmentExecutableCompileSync' (type 'SyncExecutableTask').
  - Gradle detected a problem with the following location: '/home/mart/git/sites/wiki/build/js/packages/wiki-wiki-frontend-admin/kotlin'.
    
    Reason: Task ':wiki-frontend-admin:jsBrowserProductionWebpack' uses this output of task ':wiki-frontend-admin:jsDevelopmentExecutableCompileSync' 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 ':wiki-frontend-admin:jsDevelopmentExecutableCompileSync' as an input of ':wiki-frontend-admin:jsBrowserProductionWebpack'.
      2. Declare an explicit dependency on ':wiki-frontend-admin:jsDevelopmentExecutableCompileSync' from ':wiki-frontend-admin:jsBrowserProductionWebpack' using Task#dependsOn.
      3. Declare an explicit dependency on ':wiki-frontend-admin:jsDevelopmentExecutableCompileSync' from ':wiki-frontend-admin:jsBrowserProductionWebpack' using Task#mustRunAfter.
    
    Please refer to <https://docs.gradle.org/8.1.1/userguide/validation_problems.html#implicit_dependency> for more details about this problem.
How would I fix this? Using kotlin 1.8.20 and Gradle 8.1.1
v
I think this is a further effect of https://youtrack.jetbrains.com/issue/KT-56305/
m
So there's just nothing I can do until 1.9 fixes it?
v
Maybe if you reconfigure all relevant tasks, so that the output directories are not overlapping. For getting rid of the error you can maybe also add some ordering constraint eventually.
s
The same issue exists for official samples also (when updating the grade version to 8.x) (https://github.com/Kotlin/kotlin-wasm-examples/blob/main/compose-imageviewer/webApp/build.gradle.kts#L9-L17)