[GRADLE-725] War.libExcludeDependencies does not exclude transitive dependencies Created: 03/Nov/09  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.8
Fix Version/s: 0.9-rc-1

Type: Bug
Reporter: Nigel Charman Assignee: Adam Murdoch
Resolution: Fixed Votes: 0


 Description   

I'm using the groovy and war plugins. However, I'm only using Groovy for testing, and don't want the Groovy dependencies to appear in my war file.

My dependencies include:
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.6.5'

and my war project contains:

war {
libExcludeConfigurations('groovy')
}

This excludes the groovy jar from the war WEB-INF/lib folder of the war file, but not the transitive dependencies (eg. the war file contains WEB-INF/lib/jline-0.9.94.jar). I've found a couple of workarounds. However I think that libExcludeDependencies should exclude transitive dependencies by default.


Generated at Wed Jun 30 11:37:14 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.