Skip to content

Commit

Permalink
Use gradle built-in shorthand notations for jcenter and google
Browse files Browse the repository at this point in the history
  • Loading branch information
mcebular authored and jgranick committed Jan 27, 2020
1 parent d7bd820 commit 1fcc76e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 27 deletions.
8 changes: 2 additions & 6 deletions dependencies/extension-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
buildscript {
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url 'https://maven.google.com/'
}
jcenter()
google()
}

dependencies {
Expand Down
21 changes: 6 additions & 15 deletions templates/android/template/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

buildscript {
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url "https://maven.google.com/"
}
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:::ANDROID_GRADLE_PLUGIN::'
Expand All @@ -19,12 +15,8 @@ buildscript {

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

dependencies {
Expand Down
8 changes: 2 additions & 6 deletions templates/extension/dependencies/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
buildscript {
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url "https://maven.google.com/"
}
jcenter()
google()
}

dependencies {
Expand Down

0 comments on commit 1fcc76e

Please sign in to comment.