# HG changeset patch # User Oleksandr Gavenko # Date 1404045434 -10800 # Node ID 45c5d320d322f6c9d650417f20363c4c333f2113 # Parent 39d24046cebff68460988c04e40c066be45d689c http://stackoverflow.com/questions/24454076/how-to-force-gradle-to-use-share-m2-repository-with-maven-system-wide/ diff -r 39d24046cebf -r 45c5d320d322 .gradle/init.d/mavenLocal.gradle --- /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() + } + } +} diff -r 39d24046cebf -r 45c5d320d322 Makefile --- 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 \