Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-548

Import-Package version qualifiers vary depending on dependency scope.

    XMLWordPrintableJSON

Details

    Description

      The produced Import-Package directive appears to vary depending on the declared scope of a dependency.

      Assuming that a dependency is a valid OSGi bundle:

      • "compile" scope will include a version qualifier (eg. Import-Package: org.springframework.core;version="2.5.4").
      • "provided" scope will not include a version qualifier (eg. Import-Package: org.springframework.core).

      In this case, I believe the 'compile' behavior is correct.

      I have not tested all possible scopes. A similar inconsistency might exist for runtime, test, etc.

      Attachments

        1. bugtest3.tar.gz
          0.8 kB
          Thomas Dewire

        Activity

          People

            mcculls Stuart McCulloch
            tomdewire Thomas Dewire
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: