Build script snippet for use in all Gradle versions
buildscript { repositories { mavenCentral() } dependencies { classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.+" } } apply plugin: "com.jfrog.artifactory"
Build script snippet for use in Gradle 2.1 and above
// Replace <plugin version> with the version of the Gradle Artifactory Plugin. plugins { id "com.jfrog.artifactory" version "<plugin version>" }
Tip
Currently the "plugins" notation cannot be used for applying the plugin for sub projects, when used from the root build script
Integration BenefitsJFrog Artifactory and Gradle Repositories