Adding a resource-link to the eclipse .classpath file

Hi,

By adding the following lines to my build.gradle:

eclipse {
  project {
    linkedResource name: 'src-core', type: '2', locationUri: 'MY_ROOT/project-core/src/main/java'
    }

the .project file has been successfully changed with the new lines:

<linkedResources>
  <link>
   <name>src-core</name>
   <type>2</type>
   <locationURI>MY_ROOT/project-core/src/main/java</locationURI>
  </link>
 </linkedResources>

Unfortunately it is is not being added the the .classpath file which is why eclipse is not recognizing this as a java-source-folder.

I have done quite a bit of research now and cannot find a solution. Has anyone attempted this and got it working?

Any help would be greatly appreciated!

Best regards, Michael

No hint?

This is stinging me as well.