我和Eclipse和Gradle有一个非常特殊的问题 . 我在Eclipse中使用Gradle IDE .

Gradle的默认实现以某种方式设置类路径,它将在没有Gradle IDE插件的情况下工作 .

因此,它将所有已解析的依赖项添加到.classpath文件中 .

但在我的环境中,我现在有两次依赖 . 一次直接(来自.classpath文件)和另一个“Gradle Dependencies”

http://imagebin.org/303448

它只适用于“Gradle Dependencies” .

http://www.gradle.org/docs/current/dsl/org.gradle.plugins.ide.eclipse.model.EclipseClasspath.html,它显示了一种自定义eclipseClasspath任务的方法 .

但我不知道我可以使用什么通用的“minusConfigurations”来避免将Gradle依赖项添加到.classpath文件