Skip to content

Commit

Permalink
gradle repo priority (#22041)
Browse files Browse the repository at this point in the history
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: #22041

Differential Revision: D12871549

Pulled By: hramos

fbshipit-source-id: c86730fde956dca77174c6454fdcb005a5eec8a9
  • Loading branch information
dulmandakh authored and facebook-github-bot committed Oct 31, 2018
1 parent c147073 commit 2a349f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

buildscript {
repositories {
jcenter()
mavenLocal()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
Expand All @@ -20,9 +20,9 @@ buildscript {

allprojects {
repositories {
mavenLocal()
google()
jcenter()
mavenLocal()

def androidSdk = System.getenv("ANDROID_SDK")
maven {
Expand Down
4 changes: 2 additions & 2 deletions local-cli/templates/HelloWorld/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ buildscript {
supportLibVersion = "27.1.1"
}
repositories {
jcenter()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
Expand All @@ -22,8 +22,8 @@ buildscript {

allprojects {
repositories {
google()
mavenLocal()
google()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
Expand Down

0 comments on commit 2a349f8

Please sign in to comment.