Different classifiers with different unique snapshot IDs doesn't work well

Gradle Version: verified from 2.9 to 3.0
Operating System and JVM version: OS X, Linux, JDK 1.8
Is this a regression? No

I have artifact-1.0-SNAPSHOT.jar and artifact-1.0-SNAPSHOT-tests.jar deployed by same project.

maven-metadata.xml points classifier ‘tests’ to unique version ‘1.0-20160915.104846-3’, and plain .jar with no classifier to ‘1.0-20160915.113236-4’.

Issue is that gradle tries to resolve ‘tests’ artifact by using plain .jar 's unique version.

<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>mygroup</groupId>
  <artifactId>myartifact</artifactId>
  <version>1.0-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>20160915.113236</timestamp>
      <buildNumber>4</buildNumber>
    </snapshot>
    <lastUpdated>20160915113237</lastUpdated>
    <snapshotVersions>
      <snapshotVersion>
        <classifier>sources</classifier>
        <extension>jar</extension>
        <value>1.0-20160915.104846-3</value>
        <updated>20160915104846</updated>
      </snapshotVersion>
      <snapshotVersion>
        <extension>jar</extension>
        <value>1.0-20160915.113236-4</value>
        <updated>20160915113236</updated>
      </snapshotVersion>
      <snapshotVersion>
        <classifier>tests</classifier>
        <extension>jar</extension>
        <value>1.0-20160915.104846-3</value>
        <updated>20160915104846</updated>
      </snapshotVersion>
      <snapshotVersion>
        <extension>pom</extension>
        <value>1.0-20160915.113236-4</value>
        <updated>20160915113236</updated>
      </snapshotVersion>
    </snapshotVersions>
  </versioning>
</metadata>