Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-577

Make some of the Import-Package declarations in logback-classic OSGi bundle optional

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 0.9.15
    • logback-classic
    • None
    • OSGi Service Platform Release 4

    Description

      It might be a good idea to mark some additional packages imported by logback-classis bundle as optional. Namely this applies to packages

      javax.servlet,
      javax.servlet.http,
      javax.management

      By importing package javax.servlet you are forcing the users to deploy Sevlet API bundle even in non-web application environment.

      The current <Import-Package> declaration in maven-bundle-plugin configuration:

      <Import-Package>sun.reflect;resolution:=optional,
      javax.jms;resolution:=optional,
      *
      </Import-Package>

      Suggested update:

      <Import-Package>sun.reflect;resolution:=optional,
      javax.jms;resolution:=optional,
      javax.servlet.*;resolution:=optional,
      javax.management;resolution:=optional,
      *
      </Import-Package>

      Feel free to close this as invalid if the above mentioned packages are always required for correct operation of logback-classic.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            pjuhos Pavol Juhos
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: