Delay access to remote repositories for 10 days.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 18 Feb 2017 11:19:48 +0200
changeset 831 315277801000
parent 830 1b48fa26b52c
child 832 100b1ed59c5c
Delay access to remote repositories for 10 days.
.gradle/init.d/resolutionStrategy.gradle
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.gradle/init.d/resolutionStrategy.gradle	Sat Feb 18 11:19:48 2017 +0200
@@ -0,0 +1,7 @@
+allprojects {
+    println "resolutionStrategy: wait for 10 days"
+    configurations.all {
+        resolutionStrategy.cacheDynamicVersionsFor 10, java.util.concurrent.TimeUnit.DAYS
+        resolutionStrategy.cacheChangingModulesFor 10, java.util.concurrent.TimeUnit.DAYS
+    }
+}