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

Enhance GrapeIvy to support ext

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.8-rc-4
    • Grape
    • None

    Description

      From the mailing list:

      I would like to suggest a patch for this defect:

      Could you please review it?

      Thanks,
      Sergey

      Index: GrapeIvy.groovy
      ===================================================================
      --- GrapeIvy.groovy (revision 21815)
      +++ GrapeIvy.groovy (working copy)
      @@ -197,6 +197,7 @@
               }
       
               String groupId = deps.group ?: deps.groupId ?: deps.organisation ?: deps.organization ?: deps.org ?: ''
      +        String ext = deps.ext ?: deps.type ?: ''
       
               //TODO accept ranges and decode them?  except '1.0.0'..<'2.0.0' won't work in groovy
               String version     = deps.version ?: deps.revision ?: deps.rev ?: '*'
      @@ -214,7 +215,7 @@
               }
               def classifier = deps.classifier ?: null
       
      -        return new IvyGrabRecord(mrid:mrid, conf:conf, changing:changing, transitive:transitive, force:force, classifier:classifier)
      +        return new IvyGrabRecord(mrid:mrid, conf:conf, changing:changing, transitive:transitive, force:force, classifier:classifier, ext:ext)
           }
       
           public grab(String endorsedModule) {
      

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: