How to use sources / javadoc of local compile dependency in Eclipse / Buildship

This is possible since Buildship 1.0.18, have a look at the examples in the release notes: Buildship 1.0.18 is now available