Skip to content

Support centrally declared repositories in Gradle plugin#969

Merged
jupblb merged 2 commits into
mainfrom
michal/fix-3
Jul 2, 2026
Merged

Support centrally declared repositories in Gradle plugin#969
jupblb merged 2 commits into
mainfrom
michal/fix-3

Conversation

@jupblb

@jupblb jupblb commented Jul 2, 2026

Copy link
Copy Markdown
Member

The Gradle plugin unconditionally injected mavenCentral/mavenLocal into project repositories, which fails builds using RepositoriesMode.FAIL_ON_PROJECT_REPOS. Skip the injection when Gradle rejects it — repositories are declared in settings in that mode, so it isn't needed.

Adds a regression test fixture with centrally declared repositories.

Fixes #847

@jupblb jupblb merged commit a3eb2f2 into main Jul 2, 2026
23 checks passed
@jupblb jupblb deleted the michal/fix-3 branch July 2, 2026 15:04
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.

Gradle plugin incompatible w/centrally declared repositories

1 participant