Bruce Petro wrote:
>
> What is the proper best-practice method of fixing this mismatch in gradle
> and eclipse ??
>
The basic problem is that Eclipse can't handle hierarchical project layouts.
The typical solution is to use a flat directory layout for your project.
Gradle has special support for this (includeFlat() in settings.gradle).
If you are happy with just seeing the leaf projects in Eclipse, try to apply
the Eclipse plugin only to those projects. Instead of "subprojects { .. }"
you would say something like:
def leafProjects = subprojects.findAll { it.childProjects.empty }
configure(leafProjects) {
apply plugin: "eclipse"
}
Probably you should do the same for the Java and Groovy plugins to better
reflect the reality of your project structure.
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Best-practice-to-exclude-directories-from-generating-project-classpath-files-tp4288890p4288954.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email