Hi Hans,

The only way that I currently found to do this require some changes to the
gradle src. I have attached the patch. Will you please have a look and see
if this is the correct approach.

This changed allowed me to do the following:

archive_war {
    libExcludeConfigurations('runtime')
    project.dependencies.resolve('runtime', Filter.PROJECTS_ONLY).each {
        File f = it
        additionalLibs([dir: f.getParentFile().getPath()]) {
            include(f.getName())
        }
    }
}

Regards Jaco

http://www.nabble.com/file/p19804496/gradleFilterResolver.patch
gradleFilterResolver.patch 
-- 
View this message in context: 
http://www.nabble.com/exclude-all-except-project-deps-for-a-war-tp19786386p19804496.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