moko-resources
moko-resources copied to clipboard
Reason: Task ':client:core:res:detektMetadataCommonMain' uses this output of task ':client:core:res:generateMRcommonMain' without declaring an explicit or implicit dependency.
Hello 👋
The issue marked as resolved with 0.21.2 release still happens with 0.23.0.
The original issue is here: https://github.com/icerockdev/moko-resources/issues/421
error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':client:core:res:detektMetadataCommonMain' (type 'Detekt').
- Gradle detected a problem with the following location: '/home/runner/work/CCC/CCC/client/core/res/build/generated/moko/commonMain/src'.
Reason: Task ':client:core:res:detektMetadataCommonMain' uses this output of task ':client:core:res:generateMRcommonMain' 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 ':client:core:res:generateMRcommonMain' as an input of ':client:core:res:detektMetadataCommonMain'.
2. Declare an explicit dependency on ':client:core:res:generateMRcommonMain' from ':client:core:res:detektMetadataCommonMain' using Task#dependsOn.
3. Declare an explicit dependency on ':client:core:res:generateMRcommonMain' from ':client:core:res:detektMetadataCommonMain' using Task#mustRunAfter.
Related PR that removes the workaround: https://github.com/Oztechan/CCC/pull/2582
A problem was found with the configuration of task ':sketchable-compose:generateMRandroidMain' (type 'GenerateMultiplatformResourcesTask').
- Gradle detected a problem with the following location: 'D:\Programming\Multiplatform\Projects\Sketchable\sketchable-compose\build\generated\moko\androidMain'.
Reason: Task ':sketchable-compose:androidReleaseSourcesJar' uses this output of task ':sketchable-compose: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 ':sketchable-compose:generateMRandroidMain' as an input of ':sketchable-compose:androidReleaseSourcesJar'.
2. Declare an explicit dependency on ':sketchable-compose:generateMRandroidMain' from ':sketchable-compose:androidReleaseSourcesJar' using Task#dependsOn.
3. Declare an explicit dependency on ':sketchable-compose:generateMRandroidMain' from ':sketchable-compose:androidReleaseSourcesJar' using Task#mustRunAfter.
Please refer to https://docs.gradle.org/8.0/userguide/validation_problems.html#implicit_dependency for more details about this problem.
maybe this will be fixed with #575 - need to test
maybe will be fixed in 0.24.0, please check in 0.24.0-alpha-6
should be fixed in 0.24.0-beta-1