Managing Gradle cache.
--- 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'
+ }
+