Grails
  1. Grails
  2. GRAILS-8953

refresh-dependencies --include-source is not getting source jars for transitive dependencies

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.1
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None

      Description

      The issue was reported to me here: https://issuetracker.springsource.com/browse/STS-2538

      I've reproduced it with Grails 2.0.1 using the instructions provided by the user. I'll attach zipped up sample project and some
      instructions to reproduce the problem using only command-line tools.

        Activity

        Hide
        Kris De Volder added a comment -

        Sample project.

        It has am explicit compile dependency on mail-1.4.1.jar
        A implicit transitive compile dependency on activation-1.1.jar

        Steps to produce buggy behavior:

        > unzip bonkj.zip
        > cd bonkj/
        > which grails
        /home/kdvolder/Applications/grails-distros/grails-2.0.1/bin/grails
        > grails refresh-dependencies --include-source sources.xml
        

        Open the sources.xml file notice that:
        The mail dependency has its source jar attachment.
        The activation dependency does not.

        Adding activation-1.1 as an explicit dependency and refreshing again will make the source jar appear.

        Show
        Kris De Volder added a comment - Sample project. It has am explicit compile dependency on mail-1.4.1.jar A implicit transitive compile dependency on activation-1.1.jar Steps to produce buggy behavior: > unzip bonkj.zip > cd bonkj/ > which grails /home/kdvolder/Applications/grails-distros/grails-2.0.1/bin/grails > grails refresh-dependencies --include-source sources.xml Open the sources.xml file notice that: The mail dependency has its source jar attachment. The activation dependency does not . Adding activation-1.1 as an explicit dependency and refreshing again will make the source jar appear.
        Hide
        Vadim Kirilchuk added a comment -

        Same for me on grails 2.2.0 project.

        Show
        Vadim Kirilchuk added a comment - Same for me on grails 2.2.0 project.

          People

          • Assignee:
            Unassigned
            Reporter:
            Kris De Volder
          • Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:

              Development