title: Gradle does not use the Maven Local Repository for a new dependency
body: <p>I have Maven with <code>M2_HOME</code> defined to <code>/Users/manuelj/apache/maven/3.2.5</code></p>
  
  <p>I have the <code>settings.xml</code> file, located on <code>/Users/manuelj/apache/maven/3.2.5/conf/settings.xml</code></p>
  
  <p>where I have the following declared:</p>
  
  <pre><code>&lt;localRepository&gt;/Users/manuelj/apache/maven/repository&lt;/localRepository&gt;
  </code></pre>
  
  <p>Until here with Maven all works fine. Any new dependency goes there.</p>
  
  <p>I have a project based with Gradle, among many things in my <em>build.gradle</em>, exists the following:</p>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'maven'
  apply plugin: 'eclipse'
  apply plugin: 'application'
  
  version = '1.0.0'
  sourceCompatibility = '1.8'
  
  repositories {
     mavenLocal()
     mavenCentral()
  }
  … more
  </code></pre>
  
  <p>Until here, all works fine too. Code compile, executes well.</p>
  
  <p>My confusion is the following.</p>
  
  <p>According with my understanding is that Gradle's <code>mavenLocal()</code> should use the same path than <code>&lt;localRepository&gt;</code> defined on Maven's <code>settings.xml</code> file.</p>
  
  <p>Now confirming that in the Maven local repository exists some dependencies already downloaded.</p>
  
  <p>When I execute for example gradle build, I did realize that</p>
  
  <ul>
  <li>If a dependency already exists from the Maven Local Repository, it is used from there.</li>
  <li>If a dependency does not exist from the Maven Local Repository Gradle download the new dependency to: <code>/Users/manuelj/.gradle/caches/modules-2/files-2.1</code></li>
  </ul>
  
  <p>I want that the new dependency go directly to the same Maven Local Repository.</p>
  
  <p>Therefore, what extra configuration is need it?</p>