gradle.rst
changeset 2108 651a45561a46
parent 2104 6931c02bbc0e
child 2117 22f21cc41569
equal deleted inserted replaced
2107:6f77a1808a38 2108:651a45561a46
   164 
   164 
   165 ``-m`` option allow parsing build scripts without actually executing them::
   165 ``-m`` option allow parsing build scripts without actually executing them::
   166 
   166 
   167   $ gradle -m clean compile
   167   $ gradle -m clean compile
   168 
   168 
       
   169 Managing Gradle cache
       
   170 =====================
   169 
   171 
       
   172 Work in offline mode with ``--offline`` option.
       
   173 
       
   174 Force to re-download dependencies with ``--refresh-dependencies`` option.
       
   175 
       
   176 Alternatively remove ``~/.m2/repository/`` and ``~/.gradle/caches`` directories.
       
   177 
       
   178 Gradle cached modules declared as *changing*::
       
   179 
       
   180   dependencies {
       
   181     compile("com.evil:evil-api:1.0.1-SNAPSHOT") { changing=true }
       
   182   }
       
   183 
       
   184 Default timeout is 24 hours and can be reset/changed via::
       
   185 
       
   186   configurations.all {
       
   187       resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
       
   188   }
       
   189