title: Which dependency will Gradle choose given multiple maven repository?
body: <p>In Gradle project, we can define multiple remote / local Maven repository. </p>
  
  <pre><code>buildscript {
      repositories {
          mavenLocal()
          mavenCentral()
          jCenter()
          maven { 
              url 'https://example1.mavenrepo.com/public'
          }
          maven {
              url "https://example2.mavenrepo.com/release"
          }
      }
  
      dependencies {
          classpath 'com.example.mydependencies:mylibrary:1.0.0'
      }
  }
  </code></pre>
  
  <p>If <code>mylibrary</code> exist in all of Maven repo. Which one will Gradle choose? Can I configure Gradle to only download <code>mylibrary</code> in certain Maven repo? </p>