Skip to content

Do not use Maven Central for Gradle plugins - #1045

Merged
snazy merged 1 commit into
projectnessie:mainfrom
snazy:no-maven-local-for-plugins
Dec 1, 2026
Merged

snazy merged 1 commit into
projectnessie:mainfrom
snazy:no-maven-local-for-plugins

Conversation

@snazy

@snazy snazy commented Nov 27, 2026

Copy link
Copy Markdown
Member

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.

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.
@snazy
snazy requested review from XN137 and dimas-b November 27, 2026 16:08
Comment thread settings.gradle.kts
includeBuild("build-logic") { name = "cel-java-build-logic" }

repositories {
mavenCentral() // prefer Maven Central, in case Gradle's repo has issues

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

repositories {
mavenCentral()
gradlePluginPortal()
if (System.getProperty("withMavenLocal").toBoolean()) {
mavenLocal()
}
}
dependencies {
implementation(gradleKotlinDsl())
implementation(libs.spotless.plugin)
implementation(libs.jandex.plugin)
implementation(libs.idea.ext)
implementation(libs.shadow.plugin)
implementation(libs.protobuf.plugin)
implementation(libs.errorprone.plugin)

@snazy
snazy merged commit 7f0e5d5 into projectnessie:main Dec 1, 2026
3 checks passed
@snazy
snazy deleted the no-maven-local-for-plugins branch December 1, 2026 12:43
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.

2 participants