The Gradle Artifactory Plugin supports Gradle 2.0 and is available from the Gradle Plugins Gallery.
For full details on version compatibility please refer to the Gradle Artifactory Compatibility Table.
Download and Installation
The latest plugin jar file can be downloaded from the
JFrog Artifactory public demo. Copy the jar into your gradle home plugins directory (
Modify your Gradle scripts to fetch the plugin using the standard Ivy resolution.
This will automatically download the plugin, and make it available to the
Adding the Artifactory Plugin to Your Projects
To use the Artifactory publishing plugin in your Gradle projects, you need to add the following closure to your
In a multi-project build, you need to add the plugin to all projects:
Using the Artifactory Plugin DSL
The Gradle Artifactory plugin can be configured using its own Convention DSL inside the
The syntax of the Convention DSL is described below:
The Properties Closure DSL
The Artifactory Project Publish Task
The Artifactory Publishing Plugin creates an
You can configure the project-level task directly with the task's
Controlling the Published Modules
To control which modules of a multi-module build, are published to Artifactory you can:
Controlling the Build Name Number in BuildInfo
By default, BuildInfo is published with a build name constructed from the name of your root project and a build number that is the start date of the build.
The above properties are specified as standard Gradle properties.
You can also control the build name and number from within the Convention object DSL as shown at the end of the Convention DSL syntax above.
Watch the Screencast
To see the Gradle Artifactory Plugin in action please watch the following screencast: