I'm using Gradle 5.6.1 with a `build.gradle` file that publishes a distribution to Artifactory.

When I run the publish task, I receive a warning:

```
$ gradle publishMyPublicationToRemoteArtifactoryRepository
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.

```

Using the suggested flag reveals `The libsDir method has been deprecated.`:

```
$ gradle publishMyPublicationToRemoteArtifactoryRepository --warning-mode all
> Configure project :
The libsDir method has been deprecated. This is scheduled to be removed in Gradle 6.0.

```

The relevant section of `build.gradle` is below:

```
distributions {
    main {
        baseName = archivesBaseName

        contents {
            from libsDir
        }
    }
}

```

How do I correct `libsDir` so that the warning is resolved?