title: Gradle warning: "The libsDir method has been deprecated."
body: <p>I'm using Gradle 5.6.1 with a <code>build.gradle</code> file that publishes a distribution to Artifactory.</p>
  
  <p>When I run the publish task, I receive a warning:</p>
  
  <pre><code>$ gradle publishMyPublicationToRemoteArtifactoryRepository
  Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
  </code></pre>
  
  <p>Using the suggested flag reveals <code>The libsDir method has been deprecated.</code>:</p>
  
  <pre><code>$ gradle publishMyPublicationToRemoteArtifactoryRepository --warning-mode all
  &gt; Configure project :
  The libsDir method has been deprecated. This is scheduled to be removed in Gradle 6.0.
  </code></pre>
  
  <p>The relevant section of <code>build.gradle</code> is below:</p>
  
  <pre><code>distributions {
      main {
          baseName = archivesBaseName
  
          contents {
              from libsDir
          }
      }
  }
  </code></pre>
  
  <p>How do I correct <code>libsDir</code> so that the warning is resolved?</p>