The docs say
Once each repository has been inspected for the module, Gradle will choose the ‘best’ one to use. This is done using the following criteria: >
For a dynamic version, a ‘higher’ static version is preferred over a ‘lower’ version. > Modules declared by a module descriptor file (ivy or pom file) are preferred over modules that have an artifact file only. > Modules from earlier repositories are preferred over modules in later repositories.
Am I correct in assuming this states the precedence in which the rules are applied?
e.g. if I have a dependency foo:1.0.1 in repository X and I have foo:1.0.2 in repository Y then irrespective of the order the repositories are listed, it will select foo:1.0.2