Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve dependencies from "project" repositories, not buildscript #980

Merged
merged 10 commits into from
Nov 8, 2021

Conversation

nedtwigg
Copy link
Member

@nedtwigg nedtwigg commented Nov 6, 2021

Previously, many projects required buildscript { repositories { mavenCentral() }} at the top of their root project, because Spotless resolved its dependencies using the buildscript repositories. This concept is mostly dead now (e.g. #740, #941). After this PR we now resolve dependencies using the normal project repositories of the root project.

Follow-up work

There is a lot of demand for full configuration-cache support (#644). In this comment I explain a possible way forward. I'm exploring that right now, and I expect to update this PR based on what I find. If it takes too long, we can merge and release this PR as-is.

@nedtwigg nedtwigg changed the title Resolve dependencies from "project" repositories, not buildscript Resolve dependencies from "project" repositories, not buildscript (1 of 3) Nov 7, 2021
@jbduncan
Copy link
Member

jbduncan commented Nov 7, 2021

This change looks good to me. And if it solves the two mentioned issues (which would allow buildSrc/ integration and reduce intermittent concurrency failures), then all the better!

@nedtwigg nedtwigg merged commit 8ad1d84 into main Nov 8, 2021
@nedtwigg nedtwigg deleted the feat/resolve-deps-in-root-project branch November 8, 2021 10:27
@nedtwigg nedtwigg changed the title Resolve dependencies from "project" repositories, not buildscript (1 of 3) Resolve dependencies from "project" repositories, not buildscript Nov 9, 2021
@nedtwigg
Copy link
Member Author

nedtwigg commented Nov 9, 2021

Released in plugin-gradle 6.0.0.

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