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

Groovy Bundle Manifest should use Import-Package instead of hardcode Require-Bundle (bundle names)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6-beta-1
    • 1.5.7, 1.6-beta-2
    • None
    • None
    • JDK 6

    Description

      Groovy bundle cannot be used directly in a flexible OSGi environment due to:

      osgi> diag 24
      initial@reference:file:org.codehaus.groovy_1.5.6.jar/ [24]
      Missing required bundle antlr_0.0.0.
      Missing required bundle org.objectweb.asm_0.0.0.
      Missing optionally required bundle org.apache.ant_0.0.0.
      Missing optionally required bundle org.apache.commons.cli_0.0.0.
      Missing optionally required bundle org.junit_0.0.0.

      Groovy Require-Bundle manifest lines should be replaced with (simplification)

      Import-Package: antlr, org.objectweb.asm, org.apache.ant;resolution:="optional", org.apache.commons.cli;resolution:="optional", org.junit;resolution:="optional"

      Currently it's impossible to use other bundles that export the same packages (i.e. from SpringSource Enterprise Bundle repository) or wrapped packages.

      Using Import-Package will make Groovy one-step further of "OSGification"

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              ceefour Hendy Irawan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: