Repository navigation
Do not use Maven Central for Gradle plugins - #1045
Merged
Merged
Conversation
Maven repositories accesses against Central are generally subject to rate-limiting. This materializes in HTTP/429 responses from Maven Central. The issue with using Maven Central for Gradle plugins makes the situation worse. In Nessie, this was initially introduced to get around Gradle plugin-portal rate limiting. Now, with rate-limiting in Central, the situation changed. For Gradle plugins trying Central first amplifies the problem. Therefore, this change removes Maven Central for resolution of Gradle plugins.
XN137
approved these changes
Dec 1, 2026
| includeBuild("build-logic") { name = "cel-java-build-logic" } | ||
|
|
||
| repositories { | ||
| mavenCentral() // prefer Maven Central, in case Gradle's repo has issues |
Contributor
There was a problem hiding this comment.
codex finding:
[P3] The convention plugin classpath still tries Maven Central first. cel-conventions loads Spotless, Shadow, and Protobuf through build-logic, which has its own repositories. On a cold cache, a sustained HTTP 429 from Central can still block those plugin downloads. Either route those plugin lookups through the Gradle Plugin Portal first or narrow the PR description to the root pluginManagement change.
cel-java/build-logic/build.gradle.kts
Lines 19 to 34 in b5c04d1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Maven repositories accesses against Central are generally subject to rate-limiting. This materializes in HTTP/429 responses from Maven Central.
The issue with using Maven Central for Gradle plugins makes the situation worse. In Nessie, this was initially introduced to get around Gradle plugin-portal rate limiting. Now, with rate-limiting in Central, the situation changed.
For Gradle plugins trying Central first amplifies the problem.
Therefore, this change removes Maven Central for resolution of Gradle plugins.