Artifact snapshot present in multiple repositories - need the latest version

Hello,

I have two projects - ProjectB that depends on ProjectA, snapshot version. ProjectA can be published at local or remote repository (using maven-publish plugin).

Here is my repository order:

repositories {
 mavenLocal()
 maven {
  url "http://somehost/nexus/content/repositories/snapshots/"
 }
}

Unfortunately when the artifact is found at local repository it skip searching at remote one.

Is there any way how to push gradle to traverse all repositories to get latest version?

I believe I read on the forum that the maven repos are searched in order. My guess would be it does not support looking through all the repos and selecting the absolute latest. Maybe you could setup a local maven server to merge the local and external repositories into a single location for grade?