-
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
Regression: Variant Ambiguity error during Gradle dependency resolution when apply the plugin lazily #351
Comments
hi! Did you already explore the work being done in #349 to revert some of those changes? Curious if from your perspective that would resolve this issue as well. |
It seems that the cause is to add attributes to |
Not sure, is there a snapshot build published somewhere that I could use for quick verification? |
I experience the same issue but I think it is not related to multi-module. I'm using Java 21, Gradle 8.11, open-rewrite = "6.28.1" and dependency management is done through a TOML file. You can reproduce the issue with the repo I provide for that case at https://github.com/MartinAhrer/issue-openrewrite-gradle-variant. Run
The same repository still works with 6.27.2! |
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Gradle plugin, and my project is a multi module project.
See a reproducer here: https://github.com/stefanroeck/openrewrite_reproducer
./gradlew build
In this project, two submodules exist where the one depends on the other. The open-rewrite plugin is applied lazily (in the original setup, we have hundreds of submodules and to this for maintenance reasons for many of such plugins).
I believe this has been introduced with 147c7ef
What did you expect to see?
What did you see instead?
Error message
The text was updated successfully, but these errors were encountered: