On 15/02/10 6:54 PM, Gregory Boissinot wrote:
Deploying artifacts with classifiers into Maven repositories is OK but that
seems it doesn't work with Ivy repositories

Example

task sourcesZip(type:Zip) {
  from sourceSets.main.java
  classifier='sources'
}

artifacts{
  archives sourcesZip
}

The generated ivy.xml is
<ivy-module version="1.0">
...
  <publications>
    <artifact name="test" type="jar" ext="jar" conf="archives"/>
    <artifact name="test" type="zip" ext="zip" conf="archives"
classifier="sources"/>
  </publications>
...
</ivy>

The classifier element is not a valid attribute

-->  It's missing the Maven namespace
<ivy-module version="2.0"  xmlns:m="http://ant.apache.org/ivy/maven";>

<artifact name="test" type="zip" ext="zip" conf="archives"
m:classifier="sources"/>

I added Maven plugin but I get the same result.

Did I miss something?

I don't think so. I think this is a bug. Could you add a JIRA issue for it?


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to