title: gradle compile does not seem to be able to resolve "-SNAPSHOT" dependencies even though they exist in artifactory
body: <p>I cannot resolve dependencies that I have published to my own artifactory server ending in "-SNAPSHOT." </p>
  
  <p>I get the error:</p>
  
  <pre><code>Could not find com.company:common:1.0.0-SNAPSHOT.
  Required by:
  com.company:Intranet:1.0.0-SNAPSHOT
  </code></pre>
  
  <p>I thought by increasing the dependency versions to 1.0.2 or greater per <a href="https://stackoverflow.com/questions/18131411/gradle-dependencies-latest-snapshot">this link</a> that it might solve the problem but it had no effect. </p>
  
  <p>I have turned off unique version numbers (timestamp) on the snapshot repo. I can also see that the artifacts are indeed in my artifactory, and I do not have typos. As soon as I publish a regular version such as '1.0.0', I am able to resolve them. Here is part of my build.gradle: (And yes, I am not using the artifactory plugin, I hope to move to that soon.)</p>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'war'
  apply plugin: 'maven'
  
  group = 'com.company'
  version = '1.0.0-SNAPSHOT'
  
  def commonDep = "com.company:common:1.0.0-SNAPSHOT"
  def newCommonDep = "com.company:new-common:1.0.0-SNAPSHOT"
  
  configurations {
      deployerJars
      overlayJars
  }
  
  //From the maven plugin
  uploadArchives {
      repositories.mavenDeployer {
          uniqueVersion = false
          configuration = configurations.deployerJars
          snapshotRepository(url:"${artifactory_contextUrl}/ident-snapshot") {
          authentication(userName: "${artifactory_user}", password:       
          "${artifactory_password}")
      }
      repository(url:"${artifactory_contextUrl}/ident-release") {
          authentication(userName: "${artifactory_user}", password: 
         "${artifactory_password}")
      }
  }
  }
  
  repositories {
      mavenCentral()
      maven {
          url "${artifactory_contextUrl}/central"
          credentials {
              username = "${artifactory_user}"
              password = "${artifactory_password}"
      }
  }
  }
  
  dependencies {
  
  //jar used for maven deploy
  deployerJars "org.apache.maven.wagon:wagon-http:2.2"
  
  //grab newCommon and common war to do an overlay with the intranet war
  overlayJars commonDep + '@war', newCommonDep + '@war'
  
  compile commonDep + ':classes'
  compile newCommonDep + ':classes'
  
  providedCompile 'javax:javaee-api:7.0'
  
  }
  </code></pre>