Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-937

The type attribute of the artifact tag in ivy.xml is not set appropriately for javadoc and sources

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 0.9-rc-1

Description

When adding sources and javadoc artifacts to the archives configuration the type attribute of the artifact tag is not set appropriately. Instead a non-existent classifer attribute is added (see GRADLE-936).

Here is what is produced now:

<publications>
<artifact name="genesys-communicators" type="jar" ext="jar" conf="archives"/>
<artifact name="genesys-communicators" type="jar" ext="jar" conf="archives" classifier="javadoc"/>
<artifact name="genesys-communicators" type="jar" ext="jar" conf="archives" classifier="sources"/>
</publications>

Here is the expected output:

<publications>
<artifact name="genesys-communicators" type="jar" ext="jar" conf="archives"/>
<artifact name="genesys-communicators" type="javadoc" ext="jar" conf="archives"/>
<artifact name="genesys-communicators" type="source" ext="jar" conf="archives"/>
</publications>

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Hide
Permalink
Michael Parmeley added a comment - 08/Jun/10 4:16 PM

What is the fix version for this? This still occurs with 0.9 preview 3.

Show
Michael Parmeley added a comment - 08/Jun/10 4:16 PM What is the fix version for this? This still occurs with 0.9 preview 3.
Hide
Permalink
Michael Parmeley added a comment - 24/Jun/10 3:27 PM

This is marked as fixed (although a fixed version isn't marked); however, in gradle 0.9 preview 3 this still doesn't work. Here is what is produced:

<publications>
  <artifact name="genesys-communicators" type="jar" ext="jar" conf="archives"/>
  <artifact name="genesys-communicators" type="jar" ext="jar" conf="archives" m:classifier="javadoc"/>
  <artifact name="genesys-communicators" type="jar" ext="jar" conf="archives" m:classifier="sources"/>
</publications>

This is the expected output:

<publications>
  <artifact name="genesys-communicators" type="jar" ext="jar" conf="archives"/>
  <artifact name="genesys-communicators" type="javadoc" ext="jar" conf="archives" m:classifier="javadoc"/>
  <artifact name="genesys-communicators" type="sources" ext="jar" conf="archives" m:classifier="sources"/>
</publications>
Show
Michael Parmeley added a comment - 24/Jun/10 3:27 PM This is marked as fixed (although a fixed version isn't marked); however, in gradle 0.9 preview 3 this still doesn't work. Here is what is produced:
<publications>
  <artifact name="genesys-communicators" type="jar" ext="jar" conf="archives"/>
  <artifact name="genesys-communicators" type="jar" ext="jar" conf="archives" m:classifier="javadoc"/>
  <artifact name="genesys-communicators" type="jar" ext="jar" conf="archives" m:classifier="sources"/>
</publications>
This is the expected output:
<publications>
  <artifact name="genesys-communicators" type="jar" ext="jar" conf="archives"/>
  <artifact name="genesys-communicators" type="javadoc" ext="jar" conf="archives" m:classifier="javadoc"/>
  <artifact name="genesys-communicators" type="sources" ext="jar" conf="archives" m:classifier="sources"/>
</publications>
Hide
Permalink
Hans Dockter added a comment - 25/Jun/10 4:49 AM

You need to specify the type attribute of the artifacts your are publishing (which is not possible with preview-3, only with trunk):

artifacts {
   archives(sourceJar) {
      type = 'source'
   }
}
Show
Hans Dockter added a comment - 25/Jun/10 4:49 AM You need to specify the type attribute of the artifacts your are publishing (which is not possible with preview-3, only with trunk):
artifacts {
   archives(sourceJar) {
      type = 'source'
   }
}

People

  • Assignee:
    Hans Dockter
    Reporter:
    Michael Parmeley
Vote (0)
Watch (1)

Dates

  • Created:
    10/May/10 11:28 AM
    Updated:
    04/Jan/13 5:10 AM
    Resolved:
    24/Nov/10 2:26 PM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.