On 21/10/2010, at 9:52 PM, thomas wrote:
>
> 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!?
Probably. What does the ivy.xml file for the 'module-name' module look like?
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz