After strugling with the dependencies , it looks like the problem is not coming from the configurations.
In my multiple project conf, the java project references some libraries. A few of these libraries are needed by the WAR project for eclipse classpath. So I included these few libraries (jibx-run) inside my War dependencies as 'providedCompile', since the Java project is referencing them. That's the reason why they are not packaged inside the War. You will confirm that War dependencies overides referenced project dependencies. It seemed odd to me at first, but I guess it makes sense. Sorry for the incovinience, Erwan -----Original Message----- From: Hans Dockter [mailto:[email protected]] Sent: Thursday, May 28, 2009 5:15 PM To: [email protected] Subject: Re: [gradle-user] conflicts with WAR plugin, configurations and dependencies On May 27, 2009, at 2:09 PM, Rwanou wrote: > > Hi all, > > I'm facing a weird behaviour, which looks like a bug to me... > > here's the important parts of my configuration: > > configurations { > // Dependencies needed for jibx binding > jibxAntBind > } > > dependencies { > compile "org.jibx:jibx-run:1.1" > jibxAntBind "org.jibx:jibx-run:1.1" > jibxAntBind "org.jibx:jibx-bind:1.1" > jibxAntBind "bcel:bcel:5.1" > jibxAntBind "xpp3:xpp3:1.1.3.3" > } > > > As you see, I need the jibx library for compilation, as well as for my > custom ant task (for the classpath). > > When running compilation, and Eclipse plugin, everything goes fine. > jibx-run > is inside classpath and project can compile, then the jibx ant task > binds > OK. Eclipse claspath file references the jibx-run library (and only > this > one), the project has no dependency error. > > The problem comes when I run the war task. jibx-run is not included > in the > lib folder of my WAR file!!! > How come? is that a bug? I can't reproduce this problem. I have created a sample war project with your above set up. The war that is generated contains the jibx- run jar. > > Note that the project referencing jibx-run lib is a referenced > project, not > the WAR project itself. > > Should I open a JIRA? Is there a descent workaround for that? Please. Could you attach a test case reproducing this problem? As soon as we can reproduce it, we can think of a work around. - Hans -- Hans Dockter Gradle Project Manager http://www.gradle.org --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
