http://stackoverflow.com/questions/24454076/how-to-force-gradle-to-use-share-m2-repository-with-maven-system-wide/
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 29 Jun 2014 15:37:14 +0300
changeset 700 45c5d320d322
parent 698 39d24046cebf
child 701 4eb576174f8c
http://stackoverflow.com/questions/24454076/how-to-force-gradle-to-use-share-m2-repository-with-maven-system-wide/
.gradle/init.d/mavenLocal.gradle
Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.gradle/init.d/mavenLocal.gradle	Sun Jun 29 15:37:14 2014 +0300
@@ -0,0 +1,20 @@
+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()
+        }
+    }
+}
--- a/Makefile	Mon May 12 00:28:33 2014 +0300
+++ b/Makefile	Sun Jun 29 15:37:14 2014 +0300
@@ -43,8 +43,8 @@
     .fvwm .xxkbrc .xmodmaprc .stalonetrayrc \
     .inputrc .minttyrc .Xdefaults .xinitrc .xserverrc .screenrc .dircolors \
     .env .bashrc .bash_completion .bash_completion.d .zshrc .vimrc .ssh \
-    .pylintrc .pystartup .tclshrc .npmrc \
-    .guile \
+    .pylintrc .pystartup .tclshrc .npmrc .guile \
+    .gradle \
     .sqshrc \
     .signature .muttrc .tidy \
     .dictrc \