title: How to upload dependencies to a artifactory server
body: <p>I'm a freshman here,and I'd like to ask a question about dependency in deploying a gradle project.<br><br>
  I've got an offline developing environment,so when I try a spring sample built by <strong>gradle</strong>,i try the <strong>artifactory</strong> in order to resolve dependencies.<br><br>
  Here's what I've done:</p>
  
  <ol>
  <li>deploy <strong>gradle</strong>,download project spring-integration-kafka-master and run<code>gradle build</code> in cmd in a PC connected to the Internet,finish downloading dependency files and building the project successfully.</li>
  <li>deploy artifactory(oss 4.3.2) and run it,sucessfully login the local web page</li>
  <li><p>modified <code>build.gradle</code><br></p>
  
  <pre><code>apply plugin: 'maven'
  uploadArchives{
      repositories{
          mavenDeployer{
              repository(url: "http://localhost:8081/artifactory/libs-snapshot-local"){
                  authentication(userName: 'admin', password: 'password')
              }
          }
      }
  }
  </code></pre></li>
  <li><p>run <code>gradle uploadArchives</code></p></li>
  </ol>
  
  <p>Actually it works,but the artifactory got  BUILD-SNAPSHOT like this
  <a href="http://i.stack.imgur.com/4uTcB.png" rel="nofollow">artifactory web page screenshot</a>
  which I <strong>cannot resolve my dependencies</strong> in another offline computer(I export the repository and import it to artifactory in the offline computer).<br><br>
  There might be some misunderstandings of dependency or gradle concepts,I hope you can help me out.<br><br>
  Sincerely,shimima</p>