title: What is the preferred way to upload artifacts to Artifactory?
body: <p>I have a gradle project, and Artifactory as a repository.</p>
  
  <p>I'm a bit confised from the docs, so I ask the experts here: <strong>What is the preferred way to upload artifacts to Artifactory?</strong> using <a href="https://docs.gradle.org/current/userguide/artifact_management.html" rel="nofollow noreferrer">gradle's <code>uploadArchives</code></a>, or Artifactory's <code>artifactoryPublish</code>? </p>
  
  <p>Why the uploadArchives is not enough?</p>
  
  <p>ref: <a href="https://stackoverflow.com/questions/22352475/upload-artifact-to-artifactory-using-gradle">upload artifact to artifactory using gradle</a></p>