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

GrapeIvy downloads wrong artifact for non-default conf when artifact name is not the same as the module

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.2.2
    • 2.5.9, 3.0.0-rc-2
    • Grape
    • None

    Description

      In my Ivy repo, there exists the following directory with the following contents:

      com/example/foo/bar/1.2.3/
        bar-1.2.3.jar
        bar-1.2.3.ivy
        bar-qux-1.2.3.jar
      

      In bar-1.2.3.ivy, the following conf and publication exist:

      bar-1.2.3.ivy
      ...
      <configurations>
        <conf name="qux"/>
        ...
      </configurations>
      ...
      <publications>
        <artifact name="bar" type="jar" ext="jar" conf="apiElements,archives,runtime,runtimeElements"/>
        <artifact name="bar-qux" type="jar" ext="jar" conf="qux"/>
        ...
      </publications>
      ...
      

      When I try to use Grape to resolve bar-qux-1.2.3.jar by setting

      • org = com.example.foo
      • module = bar
      • version = 1.2.3
      • conf = qux

      bar-1.2.3.jar gets downloaded instead of bar-qux-1.2.3.jar.

      This issue seems to be caused by GROOVY-6470. The correct jar (bar-qux-1.2.3.jar) gets downloaded when using groovy-all-2.2.1, but the wrong jar is downloaded when using groovy-all-2.2.2 and newer.

      Attachments

        1. grapesTest.zip
          12.33 MB
          Anthony Hsu

        Issue Links

          Activity

            People

              emilles Eric Milles
              erwaman Anthony Hsu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h