A problem was found with the configuration of task ':lib:generateMetadataFileForReleasePublication' (type 'GenerateModuleMetadata').
- Gradle detected a problem with the following location: '/home/runner/work/java-lib***/java-lib***/lib/build/libs/lib-2.2.0-sources.jar'.
Reason: Task ':lib:generateMetadataFileForReleasePublication' uses this output of task ':lib:androidSourcesJar' 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 ':lib:androidSourcesJar' as an input of ':lib:generateMetadataFileForReleasePublication'.
2. Declare an explicit dependency on ':lib:androidSourcesJar' from ':lib:generateMetadataFileForReleasePublication' using Task#dependsOn.
3. Declare an explicit dependency on ':lib:androidSourcesJar' from ':lib:generateMetadataFileForReleasePublication' using Task#mustRunAfter.
See https://github.com/kiwix/java-libkiwix/actions/runs/9400396429/job/25890118436#step:6:58