title: Gradle: force use of a repository for a dependency
body: <p>I would like to know if there is a way to force gradle to use a repository for one dependency. For instance with:</p>
  
  <pre><code>buildscript {
  repositories {
      jcenter()
      mavenCentral()
      maven { url 'https://www.testfairy.com/maven' }
      maven { url 'https://maven.fabric.io/repo' }
      maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
  }
  
  dependencies {
      classpath 'com.android.tools.build:gradle:1.0.1'
      classpath "io.fabric.tools:gradle:1.+"
      classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
  }
  }
  
  dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  wearApp project(':wear')
  compile project(':shimmer')
  compile('com.twitter.sdk.android:twitter:1.1.1@aar') {
      transitive = true;
  }
  compile('com.twitter.sdk.android:tweet-composer:0.7.2@aar') {
      transitive = true;
  }
  compile 'com.android.support:appcompat-v7:21.0.3'
  // Dagger 2 dependencies
  compile 'com.google.dagger:dagger:2.0-SNAPSHOT'
  apt 'com.google.dagger:dagger-compiler:2.0-SNAPSHOT'
  provided 'org.glassfish:javax.annotation:10.0-b28'
  
  }
  </code></pre>
  
  <p>I want <code>com.google.dagger</code> to be checked out from <code>https://oss.sonatype.org/content/repositories/snapshots</code> because for now it tries to check it out from <code>https://maven.fabric.io/repo</code> which result in the following error:</p>
  
  <pre><code>Error:Could not GET 'https://maven.fabric.io/repo/com/google/dagger/
  dagger-compiler/2.0-SNAPSHOT/maven-metadata.xml'. Received status code 401      from server: Unauthorized
  &lt;a href="toggle.offline.mode"&gt;Enable Gradle 'offline mode' and sync project&lt;/a&gt;
  </code></pre>
  
  <p>Thank you.</p>