android - Which dependency will Gradle choose given multiple maven repository? -


in gradle project, can define multiple remote / local maven repository.

buildscript {     repositories {         mavenlocal()         mavencentral()         jcenter()         maven {              url 'https://example1.mavenrepo.com/public'         }         maven {             url "https://example2.mavenrepo.com/release"         }     }      dependencies {         classpath 'com.example.mydependencies:mylibrary:1.0.0'     } } 

if mylibrary exist in of maven repo. 1 gradle choose? can configure gradle download mylibrary in maven repo?

as can find in the doc

a project can have multiple repositories. gradle dependency in each repository in order specified, stopping @ first repository contains requested module.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -