Use the Artifactory Gradle plugin for publishing.