-
Notifications
You must be signed in to change notification settings - Fork 14
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
dependencyManagement section in the generated POM.xml contains entries from unrelated configuration? #550
Comments
@dansanduleac I'm sure you have an idea off the top of your head - could you enlighten me about what to do with this? Look at templateProcessor configuration in this file - the dependencies declared there shouldn't propagate to the generated maven POM (but they do - to the dependencyManagement section). https://github.com/carrotsearch/hppc/blob/master/hppc/build.gradle |
I have the same issue, did you solve it? |
Sorry I didn't see this.
You can disable this behaviour in a particular project by running It used to be the case that the As explained in that PR (see below), these extra dependency constraints should have no real effect on the POMs. But if you want to make the POM cleaner, then you can exclude that internal project from GCV.
|
I was wrong, i found a little bit different bug. Here is part of my .module file
As you can see first group is empty and when I try to use this external module in another project it fails, because gradle cannot parse this .module file. Could I just delete first group? Could you help me how to do it? |
Unfortunately listing all dependencies in dependencyManagement does have an inpact on consumers - it broke the build in downstream projects for me (I'd have to dig up the details though, it was a while ago). |
@dweiss that's surprising, if what you said is indeed the case (that this dependency is "only declared (transitively) in a configuration that is used internally within the build file"). So if we have (
then you should get
@Jacks0N23 you should file a separate issue. |
Surprising is our craft's other name, isn't it... I'll get back to you once I come across this again (it's been a while and I don't have the time to backtrack). I'm sure it'll happen sooner or later. |
I just ran into a case where this is an issue. We have repos A and B, where B contains plugins for a "client" module from A. These plugins will be run in an environment where the client and its dependencies are provided, so we'd like these dependencies to be the exact versions used by A. We accomplish this by declaring an B already uses GCV, and we are working on getting A to use GCV. When GCV in A is turned on, B (when picking up the new client version) downgrades a variety of dependencies not used by the client module due to this changed behavior. This causes two problems: Currently, this causes multiple conflicts where B can't find versions that satisfy all requirements (even after We could switch to use (Side note: We happen to be using |
If I remember correctly it was indeed version constraints that caused my headaches too. |
I see entries in dependencyManagement section of my project which are only declared (transitively) in a configuration that is used internally within the build file - it is not explicitly extended or attached to any java plugin's configuration.
Is there any trick to get rid of these entries? They don't show up as dependencies - only in dependencyManagement, but they pollute the output POM file.
The text was updated successfully, but these errors were encountered: