repositories {
//Maven中心庫(http://repo1.maven.org/maven2)
mavenCentral()
//本地庫,local repository(${user.home}/.m2/repository)
mavenLocal()
//指定庫
maven {
url "http://repo.mycompany.com/maven2"
}
//指定庫
mavenRepo name: reponame', url: "http://repo.mycompany.com/maven2"
//指定庫
maven {
// Look for POMs and artifacts, such as JARs, here
url "http://repo2.mycompany.com/maven2"
// Look for artifacts here if not found at the above location
artifactUrls "http://repo.mycompany.com/jars"
artifactUrls "http://repo.mycompany.com/jars2"
}
//帶認證的庫
maven {
credentials {
username 'user'
password 'password'
}
url "http://repo.mycompany.com/maven2"
}
}