Thanks for your help.  That got me started in the right direction and I was
able to figure it out.

We want to do this because this web app, when deployed, will share many of
the common jars with other web apps running in the same instance of Tomcat
-only a few are unique to this web app.  This way, we don't need to
duplicate jars in the web server.

However, this then made me wonder how I can switch between this custom war
bundling, and the generic war bundling where all the jars are thrown into
one war.  Is there an easy way to change configurations based on the task
passed in at the command line?  For instance, I would like execute 'gradle
war' to do the generic bundle-all war.  Conversely, I would like to executue
'gradle splitWar' to run a custom task that will do the split jar mode as I
have configured now.  I couldn't find a way to dynamically assign different
configurations in my war's dependencies depending on the task executed.  Is
this possible?  Somehow I feel it must be, but I'm approaching this the
wrong way.

Thank you again for your help.  Gradle is proving itself to be the simplest
and most powerful build tool I've used.

Andrew
-- 
View this message in context: 
http://www.nabble.com/Only-bundle-sub-project-jars-in-WAR--not-transitive-depencies-tp25965185p26104372.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to