329

So my problem is how to add multiple maven repositories to one gradle file.

This DOESN’T work:

repositories {
    mavenCentral()
    maven {
        url "http://maven.springframework.org/release"
        url "http://maven.restlet.org"
    }
}
chubao
  • 5,871
  • 6
  • 39
  • 64
AZ_
  • 21,688
  • 25
  • 143
  • 191

1 Answers1

98

you have to do like this in your project level gradle file

allprojects {
    repositories {
        jcenter()
        maven { url "http://dl.appnext.com/" }
        maven { url "https://maven.google.com" }
    }
}
Konstantin Yovkov
  • 62,134
  • 8
  • 100
  • 147
saigopi.me
  • 14,011
  • 2
  • 83
  • 54