You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2017/09/18 10:23:00 UTC
[jira] [Commented] (SLING-7129) No longer set the
Bundle-RequiredExecutionEnvironment header
[ https://issues.apache.org/jira/browse/SLING-7129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16169841#comment-16169841 ]
Konrad Windszus commented on SLING-7129:
----------------------------------------
With this change the newly introduced java-version-maven-plugin from SLING-7072 is no longer necessary. The artifactId for the animal-sniffer signature for the required Java version can be easily built from the Maven property {{sling.java.version}}.
> No longer set the Bundle-RequiredExecutionEnvironment header
> ------------------------------------------------------------
>
> Key: SLING-7129
> URL: https://issues.apache.org/jira/browse/SLING-7129
> Project: Sling
> Issue Type: Improvement
> Affects Versions: Parent 32
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
>
> Since OSGi 4.3 the header {{Bundle-RequiredExecutionEnvironment}} is deprecated (see https://www.infoq.com/news/2011/03/osgi-43). Instead the more generic {{Require-Capability}} header should be used which is being set automatically by bnd for the minimally required java execution environment (based on the class version number, compare with http://bnd.bndtools.org/instructions/noee.html and https://github.com/bndtools/bnd/blob/41056e2507e9781d17aeaf66a00b35370a63043d/biz.aQute.bndlib/src/aQute/bnd/osgi/Analyzer.java#L772). Therefore the BREE header should no longer be set.
> The according discussion on the mailing list can be found in https://www.mail-archive.com/dev@sling.apache.org/msg70202.html.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)