Eclipse import with Buildship failed - core.prefs file not found

I’m importing a root project with submodules using the Eclipse Buildship plugin. Import fails because rootDir/subModuleDir/.settings/org.eclipse.buildship.core.prefs does not exist.

I added the eclipse plugin to the root build.gradle file, and ran ‘gradle eclipse’.

Not at all clear what it supposed to generate this file.