./gradlew idea doesn't add source jars for gradleApi and gradleTestKit()

(Justin Uang) #1

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

(Benjamin Muschko) #2

The JARs for the dependencies gradleApi() and 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?