Download sources and javadoc of dependencies.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 15 Mar 2017 01:00:46 +0200
changeset 2117 22f21cc41569
parent 2116 f92d8941f4a8
child 2118 df69c36275d6
Download sources and javadoc of dependencies.
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
+
+