gradle snapshot not resolved in local repository when uniqueVersion=false
<p>For my Android Library I'm using the "UploadArchives" task to deploy the AAR :</p>

<pre><code>uploadArchives {
repositories.mavenDeployer {
    configuration = configurations.deployLibrary
    pom.groupId = groupId
    pom.artifactId = artifactId
    pom.version = version
    uniqueVersion = false
    repository(url: "${RemoteReleaseDest}")
    snapshotRepository(url: 'file://' + "${localReleaseDest}") { }
}
}
</code></pre>

<p>Where "RemoteReleaseDest" is a remote Repository and "localReleaseDest" point to my Local maven repository (C:/User/me/.m2.repository).</p>

<p>this work pretty well for release version ex: myaar:2.0.0 ( I can as well set the "RemoteReleaseDest" to my local .m2  repository to force to deploy the release on it.</p>

<p>Then when I configure the dependency in my android project like this :</p>

<pre><code>compile 'mygroupId:myartefact:2.0.0'
</code></pre>

<p>the dependency is correctly resolved (even from my local repository).
but if I try with snaptshot :</p>

<pre><code>compile 'mygroupId:myartefact:2.0.0-SNAPSHOT'
</code></pre>

<p>gradle cannot resolve the dependency. while in the gradle log I can see that it is seaching in my .m2 local repository.</p>

<p>But if I Upload the snapshot archives with the parameter :</p>

<pre><code>uniqueVersion = true
</code></pre>

<p>the gradle can resolve the dependency !</p>

<p>The problem in this case is that every time I launch the task "uploadArchives" I will create new AAR, xml, md5 etc... files under the local SNAPSHOT directory.</p>

<p><strong>So why gradle cannot resolve the snapshot dependency when the snapshot is deployed with the param <code>uniqueVersion = false</code>and how can I manage this issue ?</strong></p>