
"Artifact integrity verification aside, not only should jcenter() always be last, but you need to put mavenCentral() before them. JCenter and Bintray keep proving they're not a trustworthy artifact host. Ideally you fetch nothing from them." https://twitter.com/JakeWharton/status/1073102730443526144 https://blog.autsoft.hu/a-confusing-dependency/
18 lines
584 B
Groovy
18 lines
584 B
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url 'https://maven.google.com/' } // :-| must be before jcenter()
|
|
jcenter() // download from jCenter as last resort https://blog.autsoft.hu/a-confusing-dependency
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.1.1'
|
|
}
|
|
}
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url 'https://maven.google.com/' } // :-| must be before jcenter()
|
|
jcenter() // download from jCenter as last resort https://blog.autsoft.hu/a-confusing-dependency
|
|
}
|
|
}
|