Skip to content

Commit 99d0c69

Browse files
fix: add explicit dependsOn for dependency
Context: This adds an explicit dependsOn on androidSourcesJar from generateMetadataFileForReleasePublication, which tells Gradle to always run androidSourcesJar first. It's placed inside afterEvaluate so the task is guaranteed to exist when the dependency is declared.
1 parent 5281a9a commit 99d0c69

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/publish-module.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ afterEvaluate {
6262
}
6363
}
6464
}
65+
66+
tasks.named("generateMetadataFileForReleasePublication") {
67+
dependsOn androidSourcesJar
68+
}
6569
}
6670

6771
signing {

0 commit comments

Comments
 (0)