[GRADLE-1478] Transitive dependency in classpath configuration of buildscript closure not excluded Created: 16/Apr/11 Updated: 04/Jan/13 Resolved: 14/Nov/11 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0-milestone-2 |
Fix Version/s: | 1.0-milestone-6 |
Type: | Bug | ||
Reporter: | Benjamin Muschko | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Description |
I would like to exclude a transitive dependency in the classpath configuration of my buildscript closure. However, it doesn't seems to be taken into account. Gradle still tries to resolve the dependency. This is my buildscript closure: buildscript { repositories { mavenCentral() } dependencies { classpath ... } configurations { classpath { exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj' } } } |
Comments |
Comment by Daz DeBoer [ 14/Nov/11 ] |
This works if you specify the exclude like: configurations.classpath.exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj' There is no handler for a configurations {} block inside a buildscript {} block. I've raised |