Getting a weird error while running "gradlew assemble" on a feature branch
for a PR. On both Windows and MacOS.
gradle is not my area of expertise, and so wanted to check if the issue is
obvious to anyone before I go down the path of following the resolution
steps. Or maybe even something that might need fixing(?). Thank you!
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task
':solr:ui:wasmJsProductionExecutableCompileSync' (type
'DefaultIncrementalSyncTask').
- Gradle detected a problem with the following location:
'/Users/rahulgoswami/Desktop/OpenSource_Repos/Solr-RG/solr/build/js/packages/composeApp/kotlin'.
Reason: Task ':solr:ui:wasmJsBrowserDevelopmentWebpack' uses this
output of task ':solr:ui:wasmJsProductionExecutableCompileSync' 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 ':solr:ui:wasmJsProductionExecutableCompileSync' as
an input of ':solr:ui:wasmJsBrowserDevelopmentWebpack'.
2. Declare an explicit dependency on
':solr:ui:wasmJsProductionExecutableCompileSync' from
':solr:ui:wasmJsBrowserDevelopmentWebpack' using Task#dependsOn.
3. Declare an explicit dependency on
':solr:ui:wasmJsProductionExecutableCompileSync' from
':solr:ui:wasmJsBrowserDevelopmentWebpack' using Task#mustRunAfter.
-Rahul