The Gradle Artifactory plugin version supporting this new model is 2.1.0 or above.
Downloading and Installing the Artifactory Plugin
The latest plugin jar file can be downloaded from here and copy it to your gradle home plugins directory
Alternatively, you can add to your Gradle scripts to fetch the plugin using the standard Ivy resolution. For example:
The above script will automatically download the plugin, and make it available to the
Adding the Plugin to Your Project(s)
In order to apply the plugin in your Gradle projects, the following closure needs to be declared in your
In a multi-project build, you'd want to apply 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
A publication that is a valid name of a publication of the project. You can use
The Artifactory Project Publish Task
Behind the scenes the Gradle Artifactory Plugin creates an '
Controlling the Published Modules
To control which modules of a multi-module build, will be published to Artifactory you can:
Controlling BuildInfo's Build Name and Build Number
By default, BuildInfo will be published with a build name that is 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 values from inside the convention object DSL like showed at the bottom of the DSL code.
Watch the Screencast
To see the Gradle Artifactory Plugin in action you can watch the following screencast below.