I’m unable to see the sources in the IDE, even when I change the distributionUrl in gradle-wrapper.properties to https://services.gradle.org/distributions/gradle-3.1-all.zip
The JARs for the dependencies
gradleTestKit() are generated at runtime and are not published to an external binary repository. To make this work we’d need to generate the sources JAR file for the corresponding dependencies at runtime as well which Gradle doesn’t do currently.
Would you be interested in contributing such a feature?