diff --git a/build.gradle b/build.gradle index be47690d8eb..eb1ee4e4f8c 100644 --- a/build.gradle +++ b/build.gradle @@ -223,6 +223,11 @@ tasks.idea.dependsOn(buildSrcIdea) // eclipse configuration allprojects { apply plugin: 'eclipse' + // Name all the non-root projects after their path so that paths get grouped together when imported into eclipse. + if (path != ':') { + System.err.println(eclipse.project.name + ' ' + path) + eclipse.project.name = path + } plugins.withType(JavaBasePlugin) { File eclipseBuild = project.file('build-eclipse')