mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-09-08 22:58:18 -04:00
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:
parent
374f2932a5
commit
3bdbdbdd53
@ -71,6 +71,13 @@ afterEvaluate {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set dependency for the metadata file generation task
|
||||
tasks.withType(GenerateModuleMetadata).tap {
|
||||
configureEach {
|
||||
dependsOn tasks.named("androidSourcesJar")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
signing {
|
||||
|
Loading…
x
Reference in New Issue
Block a user