composite builds is not correctly update the connection.project.dir
When I include B build in A build includeBuild('../B') and then I remove it
the "connection.project.dir" in B does not comply with removal and retains the value of build A. that lead to Problems one of which is that project B is no longer correctly refreshable by eclipse
Encountered the same problem. This causes weird issues if you have a project - e.g. "project1" - that is contained in two builds "core" and "custom".
If I import build "core" first everything is fine ("connection.project.dir" is set to "core"). If I delete all projects from workspace and then import build "custom" I end up getting both builds in my workspace and the classpath of "project1" is invalid.
This is because during the import of build "custom", "GradleClasspathContainerInitializer.loadClasspath()" returns build "core" for
GradleCore.getWorkspace().getBuild("project1");
which triggers an additional synchronization of build "core".