ppkarwasz commented on PR #676:
URL: https://github.com/apache/commons-parent/pull/676#issuecomment-3433791349

   Hi @ecki,
   
   > I think this should only be fixed in the bundle plugin, it should be 
configurable for the desired OSGi spec level and then exclude or include the 
system packages as needed (I also think it’s more than only Java.*?).
   
   This is already configurable via the Bnd option 
[`-noimportjava`](https://bnd.bndtools.org/instructions/noimportjava.html). By 
default Bnd only allows `java.*` imports if the bundle uses **OSGi R7+** or 
**targets Java 11+**. Neither is true for Commons, so the imports **should** 
currently be suppressed.
   
   However, it’s possible Bnd detects the Java level from the **JDK used to 
build** rather than from `Require-Capability`, which might explain the current 
behavior.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to