- URL of your artifactory cloud repository
- Artifactory username
- Artifactory password
Dependencies should sync automatically.
Happy Java-ing!
plugins { id 'java' id 'com.jfrog.artifactory' version '4.17.2' }
group 'com.michaelwilliamjones' version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories { jcenter() mavenCentral() }
dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' //Check for the latest version here: http://plugins.gradle.org/plugin/com.jfrog.artifactory compile group: 'com.michaelwilliamjones', name: 'HelloJava', version: '1.2-SNAPSHOT' }
artifactory { contextUrl = "${artifactory_contextUrl}" //The base Artifactory URL if not overridden by the publisher/resolver resolve { repository { repoKey = 'gradle-dev' username = "${artifactory_user}" password = "${artifactory_password}" maven = true } } }