Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.3.5, 1.4.5
-
None
Description
The MANIFEST.MF file of logback-core, -classic, and -access contain the OSGi entry Bundle-RequiredExecutionEnvironment: JavaSE-1.6, which is outdated since Java-8 is required for logback 1.3 and Java-11 for 1.4.
In general the OSGi header Bundle-RequiredExecutionEnvironment is deprecated and should be replaced by a corresponding osgi.ee required capability.
The maven-bundle-plugin can generated all that automatically, if it is not restricted and therefore this issue can simply be solved by removing the <_noee>true</_noee> and {{<Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment> }}configuration elements.
Furthermore the maven-bundle-plugin configuration explicitly imports packages that are used in the code and are therefore added any ways. Listing them explicitly could just cause inconsistencies in the future if something changes in this regard.