-
Notifications
You must be signed in to change notification settings - Fork 18
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
How to handle plugins that add their own dependencies? #15
Comments
Hi @mqware. It's a good idea to remove dependencies that were added by another plugin to have full control over them in your build. You can do that through the
Official documentation of the feature: https://docs.gradle.org/current/userguide/resolution_rules.html#changing_configuration_dependencies_prior_to_resolution |
Hi @jjohannes. Thanks, sounds like I was on the right track then, I just need to figure out how to actually implement it. (Which is the hard part :-) I was trying to do something similar in the
|
While I am still not sure why |
In the current setup, I think conceptually In the current setup: You now have a very sensitive order of the things done in
I may have to think about this a bit more, but it might be better to only have one org.example.dependency-analysis-project.gradle.kts
I am not sure if this is the most elegant solution though. When I look at #14 I'll give this some more thoughts and provide an update here. |
I am trying to apply a community-plugin that automatically adds its own dependency, and of course I am getting an error from the org.example.dependency-analysis-project plugin that versions must be declared in the platform project. Apart from modifying the plugin code itself, what would be the best approach to handle a situation like this?
I was thinking that maybe in addition to showing the error message, the plugin could also remove any dependencies that were added with a version, and then the user would have to make sure that the same dependency is defined in the platform and added in the build script. But so far I don't have any luck implementing this. Do you have any suggestions on how to resolve this issue?
Thanks.
Peter
The text was updated successfully, but these errors were encountered: