Use gradle built-in shorthand notations for jcenter and google

This commit is contained in:
mc0239
2020-01-21 11:46:00 +01:00
committed by Joshua Granick
parent d7bd820238
commit 1fcc76ee12
3 changed files with 10 additions and 27 deletions

View File

@@ -1,11 +1,7 @@
buildscript { buildscript {
repositories { repositories {
jcenter { jcenter()
url "http://jcenter.bintray.com/" google()
}
maven {
url 'https://maven.google.com/'
}
} }
dependencies { dependencies {

View File

@@ -2,12 +2,8 @@
buildscript { buildscript {
repositories { repositories {
jcenter { jcenter()
url "http://jcenter.bintray.com/" google()
}
maven {
url "https://maven.google.com/"
}
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_PLUGIN::' classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_PLUGIN::'
@@ -19,12 +15,8 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
jcenter { jcenter()
url "http://jcenter.bintray.com/" google()
}
maven {
url "https://maven.google.com"
}
}::if ANDROID_GRADLE_BUILD_DIRECTORY:: }::if ANDROID_GRADLE_BUILD_DIRECTORY::
buildDir = "::ANDROID_GRADLE_BUILD_DIRECTORY::/::APP_FILE::/${project.name}"::end:: buildDir = "::ANDROID_GRADLE_BUILD_DIRECTORY::/::APP_FILE::/${project.name}"::end::
} }
@@ -40,9 +32,8 @@ wrapper {
configure(subprojects.findAll {!it.file('build.gradle').exists() && it.file('build.xml').exists()}) { configure(subprojects.findAll {!it.file('build.gradle').exists() && it.file('build.xml').exists()}) {
buildscript { buildscript {
repositories { repositories {
maven { jcenter()
url "https://maven.google.com/" google()
}
} }
dependencies { dependencies {

View File

@@ -1,11 +1,7 @@
buildscript { buildscript {
repositories { repositories {
jcenter { jcenter()
url "http://jcenter.bintray.com/" google()
}
maven {
url "https://maven.google.com/"
}
} }
dependencies { dependencies {