Skip to content

Commit 622bac4

Browse files
committed
Fix task dependencies for generateMetadataFileForPluginMavenPublication
- Add explicit dependencies on sourceJar and groovydocJar tasks - Fixes Gradle task validation errors during release builds - Ensures artifacts are built before metadata generation
1 parent 4d36147 commit 622bac4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,12 @@ afterEvaluate {
207207
}
208208
}
209209

210+
// Ensure metadata generation depends on artifact tasks
211+
tasks.named('generateMetadataFileForPluginMavenPublication').configure {
212+
dependsOn sourceJar
213+
dependsOn groovydocJar
214+
}
215+
210216
publishing.publications.all {
211217
if (it instanceof MavenPublication) {
212218
it.pom {

0 commit comments

Comments
 (0)