28a29
> import org.apache.ivy.core.module.descriptor.Artifact;
54a56,65
>
> // "fix" for https://issues.apache.org/jira/browse/IVY-736
> // Per https://issues.apache.org/jira/browse/IVY-770, can only output one artifact already, just pick first, and use it's "type"
> String type = "jar";
> Artifact[] artifacts = md.getAllArtifacts();
> if (0 < artifacts.length) {
> Artifact artifact = artifacts[0];
> type = artifact.getType();
> }
>
75c86
< printModuleId(md, out);
---
> printModuleId(md, out, type);
83c94
< private static void printModuleId(ModuleDescriptor md, PrintWriter out) {
---
> private static void printModuleId(ModuleDescriptor md, PrintWriter out, String packaging) {
87c98
< out.println(" jar");
---
> out.println(" " + packaging + "");