close
Skip to content

build: bootstrap Gradle plugin repositories#15597

Merged
jdaugherty merged 1 commit into
7.0.xfrom
gradle-plugin-bootstrap
Apr 25, 2026
Merged

build: bootstrap Gradle plugin repositories#15597
jdaugherty merged 1 commit into
7.0.xfrom
gradle-plugin-bootstrap

Conversation

@matrei

@matrei matrei commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Closes gh-15596

@testlens-app

testlens-app Bot commented Apr 24, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 0196bd2
▶️ Tests: 26404 executed
⚪️ Checks: 31/31 completed


Learn more about TestLens at testlens.app.

* under the License.
*/

ext.configurePluginRepositories = { RepositoryHandler repositories ->

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.

We have a settings repo plugin. I'm assuming we can't take a similar solution for the plugin repos? If not, can we at least move this configuration adjacent to that plugin (build-logic) so they're in the same location?

@bito-code-review

Copy link
Copy Markdown

Yes, we can move the plugin-repositories.gradle file into the build-logic directory to keep the configuration adjacent to the build-logic plugin. This would require updating the 'apply from' paths in both settings.gradle files to reference the new location.

@jdaugherty

Copy link
Copy Markdown
Contributor

I think we should merge to help @jamesfredley get the micronaut change merged quicker. Then we can revisit on the repo settings change.

@jamesfredley jamesfredley left a comment

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.

We can revisit that one item later, if needed.

jamesfredley added a commit that referenced this pull request Apr 25, 2026
…nt repos

Adopt the shared gradle/plugin-repositories.gradle bootstrap script
introduced in #15597 (matrei) and remove the inline repositories blocks
previously added to settings.gradle, buildSrc/settings.gradle,
grails-forge/settings.gradle, grails-forge/buildSrc/settings.gradle,
grails-gradle/settings.gradle, and grails-gradle/buildSrc/settings.gradle.

All seven settings files now resolve plugin repositories through the same
configurePluginRepositories closure, eliminating the copy-paste drift
flagged in PR #15365 review (jdaugherty) and gaining the additional repos
PR #15365's inline blocks did not cover (mavenLocal env hook, sonatype
snapshots for cloud.wondrify.*, ASF staging for grails-publish releases
and org.apache.groovy:groovy.*).

PR #15597 targets 7.0.x; this merge brings the same fix to 8.0.x while
preserving the original commit (Mattias Reichel) so the bootstrap fix is
attributed correctly across both branches.

Closes gh-15596

Assisted-by: claude-code:claude-opus-4-7
@jdaugherty jdaugherty merged commit e52c2c0 into 7.0.x Apr 25, 2026
32 checks passed
@jdaugherty

Copy link
Copy Markdown
Contributor

@matrei would you be ok to relocate the config with the build-logic? James & I wanted to get this merged so we can get the micronaut changes merged

@matrei matrei deleted the gradle-plugin-bootstrap branch April 26, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Settings/plugin bootstrap fails to resolve grails-publish from ASF snapshots

3 participants