Uploading an artifact with an appendix in the artifact name works quite well.
However the download action seems to be not able to resolve artifacts with
an appendix in its name ([module] != [artifact]-[appendix]).
Having a resolver defined like this
repositories {
def baseUrl = 'http://url.to.artifact.repo'
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = 'foo'
m2compatible = true
addIvyPattern( baseUrl +
'/[organisation]/[module]/[revision]/ivy(-[revision]).xml')
addArtifactPattern( baseUrl +
'/[organisation]/[module]/[revision]/[artifact](-[appendix])-[revision](-[classifier]).[ext]')
descriptor = 'optional'
}
}
and then trying to download it by
configurations {
foo
}
dependencies {
foo(group: 'group.name', name: 'module-name', appendix: 'feature',
version: '1.2.3-SNAPSHOT', ext: 'jar') {
appendix = 'feature'
ext = 'jar'
}
}
task(copy, type: Copy) {
from configurations.foo
into(buildDir)
}
will return the artifact without appendix only. The one having the appendix
in its artifact name will not be downloaded. Looks like a bug!?
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Downloading-artifact-appendix-revision-classifier-ext-not-working-tp3230254p3230254.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email