I have following dependencies defined in my build.gradle file:
apply ‘java’
…
dependencies{
implementation ‘groupID:artifactID:version-SNAPSHOT’
implementation ‘groupID:artifactID:version-SNAPSHOT:sources’
}
This dependency is being downloaded from a shared-team Maven repo. The dependency artifacts include a .jar, *sources.jar and a pom file. Everything works as expected - except the source is not attached in the Project and External Dependencies buildpath with Eclipse Buildship for the project referencing the dependencies. The jars are there but the source attachment is empty. I have verified .gradle cache does indeed have the source and the source looks right.
It seems the source code for other dependencies (publicly available dependencies and another proprietary project dependency - a gradle project ) have source attached. But the proprietary project in question (which is Maven based) does not attach source.
Is there something I am doing incorrectly via build.gradle?