guymahieu / ivyidea

Resolve dependencies for your Intellij projects using Ivy
Apache License 2.0
13 stars 18 forks source link

Modules with multiple configurations resolve incorrectly unless configuration name is included in the library name #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an Ivy module with multiple configurations with different dependencies
2. Uncheck "Include Configuration Name" in IvyIDEA settings
3. Resolve

What is the expected output? What do you see instead?

I expect one library to be created which includes the dependencies for all 
configurations (this is the behaviour in v0.8).
But one library is created which has the dependencies for only one of the 
configurations

What version of the product are you using? On what operating system?

0.9beta4 / OS X

Please provide any additional information below.

The problem is in the LibraryModels class.  A library is created for every 
configuration but all of the libraries have the same name.  Therefore it is 
only possible to add one of them to the module.

The attached patch fixes the problem by ensuring LibraryModels only creates one 
library for each unique library name.

Original issue reported on code.google.com by cjk...@gmail.com on 4 May 2011 at 7:16

Attachments:

GoogleCodeExporter commented 8 years ago
I've applied your patch in SVN trunk and it will be available in the next 
release.
Thanks a lot for the contribution!

Original comment by maarten....@gmail.com on 13 Aug 2011 at 6:16