comparison init.gradle @ 109:029db4d977fe

fix cache setting of changing and and dynamic revisions
author smith@nwoca.org
date Thu, 06 Sep 2012 20:33:23 +0100
parents 167745cd8af9
children 9ed6a36104ed
comparison
equal deleted inserted replaced
108:bb3fa722df51 109:029db4d977fe
49 def ssdtArtifactory = 'http://repos.ssdt.nwoca.org/artifactory' 49 def ssdtArtifactory = 'http://repos.ssdt.nwoca.org/artifactory'
50 Project root = gradle.getRootProject() 50 Project root = gradle.getRootProject()
51 root.allprojects { 51 root.allprojects {
52 def thisProject = delegate 52 def thisProject = delegate
53 configurations.all { 53 configurations.all {
54 resolutionStrategy.cacheChangingModulesFor 120, 'minutes' 54 resolutionStrategy.cacheChangingModulesFor 60 * 60 * 8, 'seconds'
55 resolutionStrategy.cacheDynamicVersionsFor 120, 'minutes' 55 resolutionStrategy.cacheDynamicVersionsFor 60 * 60 * 8, 'seconds'
56 } 56 }
57 repositories { 57 repositories {
58 if (!gradle.bambooBuild) { 58 if (!gradle.bambooBuild) {
59 add(new org.apache.ivy.plugins.resolver.FileSystemResolver()) { 59 add(new org.apache.ivy.plugins.resolver.FileSystemResolver()) {
60 name = 'local' 60 name = 'local'