gradle repo priority (#22041)

Summary:
Changed gradle repo list to have consistent priority. mavenLocal is top priority because it requires manual setup, also won't conflict with other repos.
Pull Request resolved: https://github.com/facebook/react-native/pull/22041

Differential Revision: D12871549

Pulled By: hramos

fbshipit-source-id: c86730fde956dca77174c6454fdcb005a5eec8a9
This commit is contained in:
Dulmandakh 2018-10-31 14:30:18 -07:00 committed by Facebook Github Bot
parent c1470736b0
commit 2a349f87f7
2 changed files with 4 additions and 4 deletions

View File

@ -5,9 +5,9 @@
buildscript { buildscript {
repositories { repositories {
jcenter()
mavenLocal() mavenLocal()
google() google()
jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.1.4' classpath 'com.android.tools.build:gradle:3.1.4'
@ -20,9 +20,9 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
mavenLocal()
google() google()
jcenter() jcenter()
mavenLocal()
def androidSdk = System.getenv("ANDROID_SDK") def androidSdk = System.getenv("ANDROID_SDK")
maven { maven {

View File

@ -9,8 +9,8 @@ buildscript {
supportLibVersion = "27.1.1" supportLibVersion = "27.1.1"
} }
repositories { repositories {
jcenter()
google() google()
jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.1.4' classpath 'com.android.tools.build:gradle:3.1.4'
@ -22,8 +22,8 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
google()
mavenLocal() mavenLocal()
google()
jcenter() jcenter()
maven { maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm