我在文档中看到的所有示例都非常常见,这些示例说明了如何通过 build.gradle 文件向 Eclipse 项目类路径添加条目。他们什么也没说如何添加条目:
<classpathentry exported="true", kind="con" path="GROOVY_SUPPORT"/>
Doc或“Gradle Effective Implementation Guide”一书对建议毫无用处,因为
//closure executed after .classpath content is loaded from existing file
//and after gradle build information is merged
whenMerged { classpath ->
//you can tinker with the Classpath here
}