jean
11/20/2023, 2:14 PM* What went wrong:
A problem was found with the configuration of task ':ui:generateMRandroidMain' (type 'GenerateMultiplatformResourcesTask').
- Gradle detected a problem with the following location: '/Users/jeantuffier/Repos/Entur/Tavla/CommonTavla/ui/build/generated/moko/androidMain'.
Reason: Task ':ui:compileCommonMainKotlinMetadata' uses this output of task ':ui:generateMRandroidMain' 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 ':ui:generateMRandroidMain' as an input of ':ui:compileCommonMainKotlinMetadata'.
2. Declare an explicit dependency on ':ui:generateMRandroidMain' from ':ui:compileCommonMainKotlinMetadata' using Task#dependsOn.
3. Declare an explicit dependency on ':ui:generateMRandroidMain' from ':ui:compileCommonMainKotlinMetadata' using Task#mustRunAfter.
For more information, please refer to <https://docs.gradle.org/8.2/userguide/validation_problems.html#implicit_dependency> in the Gradle documentation.
Even though I added
tasks.withType<GenerateMultiplatformResourcesTask>()
.matching { it.name == "compileCommonMainKotlinMetadata" }
.configureEach { dependsOn("generateMRandroidMain") }
Did anyone have the same issue?