How to generate build path project references in Eclipse?

So I have project A and B, B has A declared as a dependency. When I run gradle eclipse, B’s .classpath gets A.jar on its classpath. Now, I would like to also have project B referencing project A on the build path, and have that reference come before the A.jar entry.

The documentation hints that whenMerged might be used to manipulate the classpath, but I can’t seem to find anything concrete on how exactly the classpath API works (short of of course diving into the source code, but I thought I might ask here first). Calling classpath.configure([new ProjectEntry(’/projectA’, ‘projectA’)]) wipes out all the existing entries.

I’ve also tried putting A and B under one root project and call gradle eclipse from the root, but that didn’t cause any referencing to happen either.