# HG changeset patch # User smith@nwoca.org # Date 1437505032 -3600 # Node ID 412deaefd071b04c4c76dd81cc58c6790e07e386 # Parent a7a7d0e263d61d92bea817b4c18d5e7c79f1cfa3# Parent ae8921d4c284f105566e199f2cf4d8f8e70b827d merge diff -r ae8921d4c284 -r 412deaefd071 init20.gradle --- a/init20.gradle Thu Jul 16 18:19:16 2015 +0100 +++ b/init20.gradle Tue Jul 21 19:57:12 2015 +0100 @@ -71,7 +71,13 @@ gradle.environment.put('branchStream', gradle.branch.stream) gradle.environment.put('branchHash', gradle.branch.hash) +def cacheTimeout = 60 * 60 * 8 +if (gradle.environment['dependencyTimeout']) { + cacheTimeout = gradle.environment['dependencyTimeout'] as Integer + println "setting dependency timeout to $cacheTimeout seconds" +} +gradle.ext.cacheTimeout = cacheTimeout rootProject.ext.indyCapable = { boolean capable = true @@ -337,8 +343,8 @@ } configurations.all { - resolutionStrategy.cacheChangingModulesFor 60 * 60 * 8, 'seconds' - resolutionStrategy.cacheDynamicVersionsFor 60 * 60 * 8, 'seconds' + resolutionStrategy.cacheChangingModulesFor gradle.cacheTimeout, 'seconds' + resolutionStrategy.cacheDynamicVersionsFor gradle.cacheTimeout, 'seconds' } repositories {