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

* The issue occurred because `generateMetadataFileForReleasePublication` uses the output of the `androidSourcesJar` task, but no dependency was declared on this task. This can lead to incorrect results being produced due to the tasks executing in the wrong order. To fix this, we added an explicit dependency on the `GenerateModuleMetadata` tasks, ensuring that all `GenerateModuleMetadata` tasks run after the `androidSourcesJar` task.
This commit is contained in:
MohitMaliFtechiz 2024-06-06 18:06:27 +05:30
parent 374f2932a5
commit 3bdbdbdd53

View File

@ -71,6 +71,13 @@ afterEvaluate {
}
}
}
// Set dependency for the metadata file generation task
tasks.withType(GenerateModuleMetadata).tap {
configureEach {
dependsOn tasks.named("androidSourcesJar")
}
}
}
signing {