Include mavenLocal() to gradle builds.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 18 Feb 2017 11:18:43 +0200
changeset 830 1b48fa26b52c
parent 829 ccd4c8b35330
child 831 315277801000
Include mavenLocal() to gradle builds.
.gradle/init.d/mavenLocal.gradle
--- a/.gradle/init.d/mavenLocal.gradle	Sat Feb 18 11:14:13 2017 +0200
+++ b/.gradle/init.d/mavenLocal.gradle	Sat Feb 18 11:18:43 2017 +0200
@@ -1,20 +1,26 @@
-allprojects { project ->
-    buildscript {
-        if( !project.hasProperty('skipMavenLocal') ) {
-            repositories {
-                println "Adding buildscript mavenLocal()"
-                mavenLocal()
-            }
-            configurations.all {
-                resolutionStrategy.cacheChangingModulesFor 0, 'hours'
-            }
-        }
-    }
+allprojects {
+    // project ->
+    // buildscript {
+    //     if( !project.hasProperty('skipMavenLocal') ) {
+    //         repositories {
+    //             println "Adding buildscript mavenLocal()"
+    //             mavenLocal()
+    //         }
+    //         configurations.all {
+    //             resolutionStrategy.cacheChangingModulesFor 0, 'hours'
+    //         }
+    //     }
+    // }
 
-    if( !project.hasProperty('skipMavenLocal') ) {
-        repositories {
-            println "Adding mavenLocal()"
-            mavenLocal()
-        }
+    // if( !project.hasProperty('skipMavenLocal') ) {
+    //     repositories {
+    //         println "Adding mavenLocal()"
+    //         mavenLocal()
+    //     }
+    // }
+
+    repositories {
+        println "Adding mavenLocal()"
+        mavenLocal()
     }
 }