# HG changeset patch # User Oleksandr Gavenko # Date 1489532446 -7200 # Node ID 22f21cc41569f08c31b84ed10275434a29adf25d # Parent f92d8941f4a80003a8277a3e3df6814968995b83 Download sources and javadoc of dependencies. diff -r f92d8941f4a8 -r 22f21cc41569 gradle.rst --- a/gradle.rst Wed Mar 08 16:31:24 2017 +0200 +++ b/gradle.rst Wed Mar 15 01:00:46 2017 +0200 @@ -187,3 +187,22 @@ resolutionStrategy.cacheChangingModulesFor 0, 'seconds' } +Download sources and javadoc of dependencies +============================================ + +To download sources and javadoc of dependencies to local ``~/.gradle`` cache add +``idea`` plugin to your ``build.gradle``:: + + apply plugin: 'idea' + idea.module.downloadJavadoc = true + idea.module.downloadSources = true + +and invoke plugin:: + + $ gradle idea + +To wipe out Idea projects file after plug-in run:: + + $ gradle cleanIdea + +