guymahieu / ivyidea

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

Enhancement: allow separate meta-library for each Ivy configuration #90

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have a single module in my IDEA project that is built as an Ant/Ivy project. 
I have three Ivy configurations that mimic the Maven scopes (i.e., test, 
compile, provided). In order to allow IDEA to build the artifact correctly, 
though, I need each configuration to map as a separate library, so that when I 
set up the artifact, I can mark the library's scope as appropriate, since IDEA 
has the concept of library scopes as well when it comes to artifact layout.

If I were able to add multiple IvyIDEA facets per module, this would work fine, 
since I could restrict each one to a single configuration, but I am unable to 
add a facet more than once per module. Because of this, every library that is 
depended on ends up under an "IvyIDEA" meta-library, and includes test and 
provided dependencies.

I am able to add multiple libraries like this in Eclipse, but can't really 
stand using Eclipse, which is why I'd love for IvyIDEA to be able to do this. :)

Original issue reported on code.google.com by imo...@gmail.com on 19 Dec 2011 at 8:41

GoogleCodeExporter commented 8 years ago
There is an option in the IvyIDEA configuration to include the name of the 
module+configuration into the IDEA library name. This should solve your problem.

Original comment by maarten....@gmail.com on 19 Dec 2011 at 10:07

GoogleCodeExporter commented 8 years ago
Ah, that's it! Thank you. If I'm able to edit the Confluence at Jetbrains' 
site, I'll add this helpful tidbit. It wasn't immediately obvious to me, but 
sure enough, that's exactly what I needed.

Original comment by imo...@gmail.com on 19 Dec 2011 at 10:39