I am trying to get the Gradle Artifactory Plugin to resolve artifacts.
My build.gradle file is below with the <URL> being replaced with the correct
hostname
buildscript {
repositories {
maven { url 'http://jcenter.bintray.com' }
}
dependencies {
classpath(group: 'org.jfrog.buildinfo', name:
'build-info-extractor-gradle', version: '3.0.1')
}
}
apply plugin: 'com.jfrog.artifactory'
artifactory {
contextUrl = 'http://<URL>:8081/artifactory' //The base Artifactory
URL if not overridden by the publisher/resolver
resolve {
repository {
repoKey = 'training'
maven = true
}
}
}
configurations {
deploy
}
dependencies {
deploy group: 'test', name: 'PolicyAdmin', version: '1.0', ext: 'ear'
}
task downloadFile {
def fileExec = configurations.deploy.getSingleFile()
}
However when this is run it fails to resolve the artifact. The dependency
line was generated from Artifactory.
I am intending to use the "old" publish mechanism. My Gradle version is 2.0.
I have tried an artifactory repository with a maven2-default and a gradle
layout.
The stack trace can be found at http://textuploader.com/oljd
The debug trace can be found at http://filebin.ca/1ecmeQ7zYEIU/debug.txt
If I instead use a maven repository ie
repositories {
maven {
url 'http://<URL>:8081/artifactory/repo'
}
}
Then the artifact will resolve I'm therefore either doing something wrong
with the artifactory DSL code or there is a bug in the plugin
I have also now tried on Gradle 1.12 and Gradle 2.1 too with the same
outcome.
--
View this message in context:
http://forums.jfrog.org/Gradle-plugin-artifact-resolution-not-working-tp7580019.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users