You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by tj...@apache.org on 2021/02/01 23:31:18 UTC

[felix-atomos] 01/05: Allow atomos.runtime to be resolved on Java 8

This is an automated email from the ASF dual-hosted git repository.

tjwatson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-atomos.git

commit 9559f7ba8886738bc8b2a8d536f72b53601cd656
Author: Thomas Watson <tj...@us.ibm.com>
AuthorDate: Mon Feb 1 12:59:26 2021 -0600

    Allow atomos.runtime to be resolved on Java 8
    
    The latest BND will automatically add imports for java.* packages. In
    addition BND provides no way to specify the resolution directive in
    order to make the java.* package import optional. To get around this the
    instruction !java.lang.module is added to Import-Package
---
 atomos.runtime/bnd.bnd | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/atomos.runtime/bnd.bnd b/atomos.runtime/bnd.bnd
index 03a9c0b..2561fe2 100644
--- a/atomos.runtime/bnd.bnd
+++ b/atomos.runtime/bnd.bnd
@@ -1,5 +1,6 @@
 Import-Package: \
- org.osgi.framework; version=1.9,\
+ !java.lang.module,\
  org.apache.felix.service.command; resolution:=optional,\
  sun.misc; resolution:=optional,\
  *
+