Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3427

Grape support for Maven classifiers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.6.3
    • Grape
    • None

    Description

      Please add Grape grab support for Maven classifiers.

      Here is an example of a @Grab declaration that does not work because of the lack of classifier support:

      @Grab(group='net.sf.json-lib', module='json-lib', version='2.2.3')
      

      It doesn't work because Grape/Ivy looks for a jar called json-lib-2.2.3.jar which doesn't exist in the repo. It needs to find json-lib-2.2.3-jdk15.jar (the jdk15 is a classifier).

      A suggestion would be to support an optional classifier attribute like this:

      @Grab(group='net.sf.json-lib', module='json-lib', version='2.2.3', classifier='jdk15')
      

      Reference:
      Groovy Users Mailing List Thread: http://markmail.org/thread/pw47erjq4tylxbwx

      Attachments

        1. classifier-support.patch
          14 kB
          Johnny Jian

        Activity

          People

            Unassigned Unassigned
            kweiner Ken Weiner
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: