Ideally, we would like to add a task for downloading all the source jars for the first level and transitive dependencies of our project. Is there a way to do that?
The eclipse task can be configured with downloadSources. Following is an example of that configuration
apply plugin: 'java' apply plugin: 'eclipse' eclipse { classpath { downloadSources=true } }
So run
gradle cleanEclipse eclipse
to have it download sources.