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-2134

When using the "classifier" attribute on an Archive task, gradle will not upload the POM to a maven repo and does not replace SNAPSHOT with a timestamp version number.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Resolution: Unresolved
  • Affects Version/s: 1.0-milestone-8
  • Fix Version/s: None

Description

A simple project which creates just a tar/jar/zip from some files and sets the classifier to "dist". (See attached build.gradle).

"gradle tasks" no longer displays the "install" task and invoking the "install" tasks gives a "Task not found" error.
"gradle uploadArchives" uploads the tar/jar/zip without replacing "SNAPSHOT" with a timestamp and does not upload the POM.

Removing the classifier specification from the ArchiveTask definition resolves the problem.

The same behavior is displayed if the classifier is instead added in the artifacts.archives specification:

artifacts {
archives(myZip) { classifier = "dist" }
}

An extended discussion of this issue can be found here: http://forums.gradle.org/gradle/topics/pom_doesnt_upload

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    build.gradle
    29/Feb/12 9:25 AM
    0.6 kB
    Grant

Activity

  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Hide
Permalink
Scott Palmer added a comment - 29/Feb/12 11:34 AM

duplicate of GRADLE-2125

Show
Scott Palmer added a comment - 29/Feb/12 11:34 AM duplicate of GRADLE-2125

People

  • Assignee:
    Unassigned
    Reporter:
    Grant
Vote (6)
Watch (4)

Dates

  • Created:
    29/Feb/12 9:25 AM
    Updated:
    29/Feb/12 11:34 AM
  • 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.