From 2b7e9ddb550a61ad0f19ca222f56483e30fd56af Mon Sep 17 00:00:00 2001 From: "jorisjonkers-dev-agents[bot]" Date: Sun, 28 Jun 2026 16:45:08 +0000 Subject: [PATCH] fix(clients): declare sourcesJar/javadocJar dependency on generate Gradle 9.6 strict task validation failed the ephemeral client build: :java:sourcesJar consumed :java:generate output without a declared dependency. Wire sourcesJar/javadocJar dependsOn generate so the shared client generation (Client Dry Run + publish) succeeds for every API repo. --- actions/api-client-publish/run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/actions/api-client-publish/run.sh b/actions/api-client-publish/run.sh index d2460a9..d056639 100755 --- a/actions/api-client-publish/run.sh +++ b/actions/api-client-publish/run.sh @@ -221,6 +221,12 @@ publishing { } } } + +// Gradle 9 strict validation: sourcesJar/javadocJar package the generated OpenAPI sources, +// so they must declare an explicit dependency on the generate task. +tasks.matching { it.name == "sourcesJar" || it.name == "javadocJar" }.configureEach { + dependsOn("generate") +} } GRADLE }