kiwix / java-libkiwix

Libkiwix binding for Java & Kotlin
https://central.sonatype.com/artifact/org.kiwix/libkiwix
GNU General Public License v3.0
3 stars 4 forks source link

The CD is failing because the new gradle version gives an error for the `lib:generateMetadataFileForReleasePublication` task. #103

Closed MohitMaliFtechiz closed 5 months ago

MohitMaliFtechiz commented 5 months ago

See https://github.com/kiwix/java-libkiwix/actions/runs/9400396429/job/25890118436#step:6:58

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.