I thought this would be done automagically given that dependencies are defined for the java project in question, but apparently not.
That worked for me. Are you using the ‘project(’:yourSubProject’)’ in the ‘dependencies’ closure?
There must be a mistake in how you configure the Eclipse plugin. Maybe you didn’t apply it to ‘allprojects’ but just to the root project or to ‘subprojects’.