Skip to content

fix(sdk-java): resolve Gradle plugin dependencies from Maven Central first - #2822

Merged
vieiralucas merged 2 commits into
mainfrom
fix/java-sdk-plugin-repos
Nov 13, 2026
Merged

vieiralucas merged 2 commits into
mainfrom
fix/java-sdk-plugin-repos

Conversation

@vieiralucas

@vieiralucas vieiralucas commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

The v0.52.0 Publish Maven Central job failed while configuring the Java SDK build, before anything was uploaded:

Could not find converter-moshi-2.11.0.jar (com.squareup.retrofit2:converter-moshi:2.11.0).
  Searched in the following locations:
    https://plugins.gradle.org/m2/com/squareup/retrofit2/converter-moshi/2.11.0/converter-moshi-2.11.0.jar

The jar answers 200 there now, so the portal miss was transient. Plugin resolution used only the plugin portal, and Gradle does not try another repository for an artifact once one has served its metadata, so adding a fallback after the portal would not help. pluginManagement now lists Maven Central first: the publish plugin's dependencies (retrofit, moshi, okhttp, ...) come from Central, and the portal serves only what it alone has, such as plugin marker artifacts.

The v0.52.0 tag is frozen; its Maven Central job is re-run separately.

Test plan

  • ./gradlew --refresh-dependencies buildEnvironment resolves the plugin tree from a cold cache; compileJava passes; publishToMavenCentral is still configured.
  • CI sdks Java job (./gradlew build).

Summary by cubic

Fixes the v0.52.0 Maven Central publish job, which failed when the Gradle plugin portal served converter-moshi's POM but not its jar. pluginManagement now resolves plugin dependencies from Maven Central first and falls back to the plugin portal only for artifacts it alone has, like plugin markers. The v0.52.0 tag is frozen, so its Maven Central job is re-run separately.

Written for commit 1f6947a. Summary will update on new commits.

View guided diff Turn on auto-fix

…first

The v0.52.0 Maven Central publish failed configuring the build: the plugin
portal served converter-moshi's POM but not its jar, and Gradle does not try
another repository for an artifact once one has served its metadata. Plugin
dependencies now come from Maven Central; the portal serves only what it
alone has (plugin markers).
@vieiralucas
vieiralucas merged commit 6196441 into main Nov 13, 2026
159 checks passed
@vieiralucas
vieiralucas deleted the fix/java-sdk-plugin-repos branch November 13, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant