gradle.rst
changeset 2108 651a45561a46
parent 2104 6931c02bbc0e
child 2117 22f21cc41569
--- a/gradle.rst	Mon Feb 27 22:54:57 2017 +0200
+++ b/gradle.rst	Thu Mar 02 13:10:51 2017 +0200
@@ -166,4 +166,24 @@
 
   $ gradle -m clean compile
 
+Managing Gradle cache
+=====================
 
+Work in offline mode with ``--offline`` option.
+
+Force to re-download dependencies with ``--refresh-dependencies`` option.
+
+Alternatively remove ``~/.m2/repository/`` and ``~/.gradle/caches`` directories.
+
+Gradle cached modules declared as *changing*::
+
+  dependencies {
+    compile("com.evil:evil-api:1.0.1-SNAPSHOT") { changing=true }
+  }
+
+Default timeout is 24 hours and can be reset/changed via::
+
+  configurations.all {
+      resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
+  }
+