I am trying to use the Artifactory Java Client in my code and Gradle build but cannot discern a few details about the JAR itself:
mavenRepo
should I use to locate the JAR inside my build.gradle
? mvnrepo.org
, it's 0.16. group:artifact:version.jar
)? Again, because I can't tell what binary repo is hosting this JAR, nor what version is officially the latest/stable, determining the proper coordinates is almost impossible. Update:
It looks like the answer to the first question (maven repo) is:
maven {
url "http://dl.bintray.com/jfrog/artifactory-tools"
}
Looks like 0.17
is also the official stable/latest version.
So still needing help with the Gradle/Maven coordinates. Leaving these answers up here in case any future-comers wonder the same thing.
The Artifactory Java client is officially distributed from Bintray . You can use the Maven repo you mentioned or better use Bintray's jcenter :
repositories {
jcenter()
}
0.17 is indeed the latest version. You can use this URL to get the latest version in Bintray - https://bintray.com/jfrog/artifactory-tools/artifactory-client-java/_latestVersion
The coordinates you need to use are:
compile(group: 'org.jfrog.artifactory.client', name: 'artifactory-java-client-services', version: '0.17', ext: 'jar')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.