[ 
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/[email protected]/msg70202.html.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to