title: How to configure maven local and remote repository in gradle build file?
body: <p>i want to use the maven local repository additionally to a maven remote one. I found the JIRA-Issue <a href="http://issues.gradle.org/browse/GRADLE-1173" rel="noreferrer">http://issues.gradle.org/browse/GRADLE-1173</a> for that, but adapting my gradle build file in that way some snapshot dependencies which are only available in the local maven repository are still not found. I get an error that the Snapshot-Dependency is not found.</p>
  
  <p>Is it possible to have one local and one remote maven repository?</p>
  
  <p>Here is the relevant part of my gradle build file:</p>
  
  <pre><code>apply plugin: 'maven'
  
  repositories {
  
      mavenLocal()
  
      maven {
          credentials {
              username "myusername"
              password "mypassword"
          }
          url "http://myremoterepository"
      }
  
  }
  </code></pre>