# HG changeset patch # User Oleksandr Gavenko # Date 1488453051 -7200 # Node ID 651a45561a462040305c219f3425d1e32657dd18 # Parent 6f77a1808a38b052f9405473dc33eb13140777c9 Managing Gradle cache. diff -r 6f77a1808a38 -r 651a45561a46 gradle.rst --- 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' + } +