title: Gradle downloading dependency into cache instead of maven repository
body: <p>I am trying to maintain the same repository on my filesystem for maven and gradle. But I am running into some problems.</p>
  
  <p>I have the following in my <code>build.gradle</code> file.</p>
  
  <pre><code>repositories {
      mavenLocal()
      mavenCentral()
  }
  
  dependencies {
      compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.3.9'
      runtime group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.3.9'
      runtime 'org.xerial:sqlite-jdbc:3.8.7'
  }
  </code></pre>
  
  <p>GRADLE_HOME is <code>D:\Programming\Java\gradle-2.2.1</code><br>
  GRADLE_USER_HOME is <code>D:\Programming\Java\.m2</code></p>
  
  <p>My gradle home is the same as my Maven repository.</p>
  
  <p>But when the dependencies are downloaded via gradle they are being downloaded into the <code>GRADLE_USER_HOME\cache</code> instead of the repository folder. What configuration am I missing?</p>
  
  <p><strong>EDIT</strong>
  I have checked the chapter on dependency management of the book <code>Gradle In Action</code>. Nothing. I have checked the <a href="http://www.gradle.org/docs/current/userguide/dependency_management.html" rel="noreferrer">dependency management</a> on gradle's website but it also just says that cache is used. </p>
  
  <p>It seems that there is no such option available in gradle. Can someone confirm?</p>