Merge pull request #16300 from nik9000/eclipse_project_names

Name eclipse projects to gradle path
This commit is contained in:
Nik Everett 2016-02-11 12:53:10 -05:00
commit 903d4d48ab
1 changed files with 5 additions and 0 deletions

View File

@ -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')