guymahieu / ivyidea

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

Make separate library list for each configuration #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In our company we have standardized on two separate configurations in our 
ivyfiles, "build" and "runtime". Build contains all dependencies needed for 
building and running unit tests, while runtime contains only what is needed 
for deployment. 

As a specific example, let "build" include junit.jar for tests and servlet-
api.jar for compiling servlets. servlet-api.jar can not be part of 
"runtime" as tomcat will not accept a deployed servlet-api.jar with our 
webapp.

We now need to use the "build" configuration for running unit tests in 
IDEA, and the "runtime" configuration for running/debugging our servlets in 
IDEA using the Tomcat plugin. This currently means we have to modify the 
IvyIDEA config when switching between these activities, which is pretty 
error prone right now.

If IvyIDEA could create separate library lists for each configuration, we 
could add the "build" configuration library list as a module dependency, 
and the "runtime" configuration library list to the Web facet.

This could be the default behaviour, or a checkbox related to the 
configuration selection table.

Original issue reported on code.google.com by jarl.tot...@gmail.com on 6 Mar 2009 at 3:11

GoogleCodeExporter commented 8 years ago
This is fairly important to me too and a pretty common use-case I would think.

Original comment by gst...@gmail.com on 3 Feb 2010 at 4:24

GoogleCodeExporter commented 8 years ago
I've gone and updated ivy idea to support this.  Hopefully I'll get time clean 
it up 
and attach a patch soon.

Original comment by gst...@gmail.com on 24 Feb 2010 at 5:47

GoogleCodeExporter commented 8 years ago
Looks like I jumped the gun.  The patch to issue 41 already covers this.  BTW 
this 
issue seems to be a duplicate of issue 42.

Original comment by gst...@gmail.com on 24 Feb 2010 at 6:29

GoogleCodeExporter commented 8 years ago
Duplicate of issue 42 and already available in latest version.

Original comment by maarten....@gmail.com on 2 Aug 2011 at 10:00