[GRADLE-1092] Eclipse classpath generation ignores excludes in 0.9-rc1 Created: 05/Aug/10 Updated: 04/Jan/13 Resolved: 19/Apr/11
|Reporter:||Bryan Keller||Assignee:||Peter Niederwieser|
The "eclipseClasspath" task seems to ignore configuration excludes when generating the Eclipse .classpath file. The resulting .classpath file includes all transitive dependencies, even ones that have been excluded by configuration.
Here is an example script that demonstrates the issue:
apply plugin: "java"
When you run "gradle eclipseCp" with 0.9preview3, commons-logging is not added to the .classpath file, as expected. When you run "gradle eclipseClasspath" with 0.9rc1, commons-logging IS added to the .classpath file.
|Comment by Ben Dotte [ 13/Oct/10 ]|
This is also a problem when generating idea projects. As a workaround, I have been excluding transitives on the dependencies depending on the unwanted jars.