We are using the AndroidArtifacts to generate the Gradle publications for us. This plugin will only use the generated publications and streamline the process over the "original" Artifactory Gradle plugin.
As already mentioned above we use the Artifactory Gradle plugin.
Basically this plugin will only setup some default properties for you for this plugin.
See the ArtifactoryPublishConfiguration
class.
Because we "depend" on the AndroidArtifacts plugin the same tasks are available in this plugin as in the AndroidArtifacts plugin. Checkout the DEVELOPMENT.md their to see a list of available task and what they do.
Because we apply the Artifactory plugin the task artifactoryPublish
will also be exposed.
The task will publish the publication (generated by the AndroidArtifacts plugin) which you
set up in our artifactoryPublish
extension.
Since we test this plugin if it can successfully publish a artifact to a running instance of Artifactory you have to make sure that there is a running instance of Artifactory before executing the tests.
You can simply use the Artifactory docker image:
docker run --name artifactory -d -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:latest
You can also checkout the consumer README for more information.