diff --git a/build.gradle b/build.gradle index c31fe88f5d2..77d29cab637 100644 --- a/build.gradle +++ b/build.gradle @@ -220,6 +220,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) { eclipse.classpath.defaultOutputDir = new File(project.buildDir, 'eclipse')