代码改变世界

[Android Tips] 26. Multiple Maven repositories in Gradle

2017-05-18 14:01  shaobin0604  阅读(288)  评论(0编辑  收藏  举报

来自 https://gradleproject.wordpress.com/2013/02/14/multiple-maven-repositories-in-gradle/

This DOESN’T work:

repositories {
    mavenCentral()
    maven {
        url "http://maven.springframework.org/release"
        url "http://maven.restlet.org"
    }
}

This works

repositories {
    maven { url "http://maven.springframework.org/release" }
    maven { url "http://maven.restlet.org" }
    mavenCentral()
}