-
Notifications
You must be signed in to change notification settings - Fork 41
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
Simplify Plugins approach to adding dependencies so that it no longer uses a hidden detached configuration. #345
Simplify Plugins approach to adding dependencies so that it no longer uses a hidden detached configuration. #345
Conversation
Just realized this is running |
With the `addLater` approach that was previously attempted the dependency strings were generated early. This would prevent users from being able to set the rewrite version in their build file. Using `beforeResolve` allows us to delay until just before resolution.
Ok, switched to |
Ping, What are the next steps here? |
@arlaneenalra, right now it appears that the same failing test on main is causing you some grief here. Just to confirm, it is just the lombok test that fails with the |
I'm pretty sure that particular test is actually skipped when using
Probably because of rewrite-gradle-plugin/plugin/src/test/kotlin/org/openrewrite/gradle/RewriteRunTest.kt Line 1503 in 95e550b
It is the only test to fail for the generic |
hi @arlaneenalra ; thanks again! Your change is now available through Hope that helps you there! |
It should, I'm on pto right now, but I should put this to use shory after
the holiday.
…On Wed, Nov 27, 2024, 15:48 Tim te Beek ***@***.***> wrote:
hi @arlaneenalra <https://github.com/arlaneenalra> ; thanks again! Your
change is now available through
https://github.com/openrewrite/rewrite-gradle-plugin/releases/tag/v6.28.0
Hope that helps you there!
—
Reply to this email directly, view it on GitHub
<#345 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACYAP6APSA5W4KWFTZMMKD2CY437AVCNFSM6AAAAABRZ7R5HSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBUHAZTIMZYHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
What's changed?
Removed dependency copying out of the
rewrite
configuration to a hidden detached one.What's your motivation?
We have internal tooling that relies on being able to attach to configurations with a
beforeResolve
hook override dependencies and provide centralized dependency versioning. With the detached configuration there is not way to attach the hook and dependency resolution fails. By removing the detached configuration in favor of therewrite
configuration we should be able to use normal hooks as expected.Anything in particular you'd like reviewers to focus on?
Anyone you would like to review specifically?
Have you considered any alternatives or workarounds?
We've attempted several approaches without modifying the existing plugin but each has run into subtle problems.
Any additional context
Checklist
[ ] I've added unit tests to cover both positive and negative casesExisting test cases already cover the behavior and the expected behavior should not change.