I don't think I am getting the use of the Artifactory plugin. I want to
uploadArchives using it, but for now I am just trying to use it for
resolving dependencies.
The following works to resolve my build dependencies, as does adding a new
URLResolver with the URL.
repositories {
mavenRepo urls:
'http://artifactory.cfglife.com/artifactory/libs-release'
}
Looking at the only page of documentation I can find (
http://wiki.jfrog.org/confluence/display/RTF/Gradle+Artifactory+Plugin) I
would think that this should replace the above.
artifactory {
contextUrl = 'http://artifactory.cfglife.com/artifactory'
resolve {
repository {
repoKey = 'libs-release'
}
}
}
In fact if I use them both I get, "Cannot add a resolver with name
'http://artifactory.cfglife.com/artifactory/libs-release' as a resolver
with that name already exists." The resolver is created but it does not
act as a repository for resolving dependencies.
Can someone point me in the right direction? And stand by for the
uploadArchives question once I get by this. :-)
-Andy