[GRADLE-826] Ivy.xml invalid when deploying artifacts with classifier Created: 17/Feb/10  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.9
Fix Version/s: 0.9-rc-1

Type: Bug
Reporter: Gregory Boissinot Assignee: Hans Dockter
Resolution: Fixed Votes: 1


 Description   

With the following 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"/>


Generated at Wed Jun 30 11:39:55 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.