Hi all,
I'm inlining some jars into a bundle using the pattern "Include-Resource: @jar1,@jar2". Those jars have some dependencies that are now included in the "Import-Package" section of the generated manifest of the created bundle. These imports are now enforced when I try to resolve the "Run-Requirements" for this bundle with BndTools. However, for backward compatibility reasons (this bundle used to be a non-OSGi jar before) I do not want these imports to be enforced.
I know their resolution can be made optional by adding ";resolution=optional" to the "Import-Package' entry, but for this I would have to post-process the generated manifest in the jar created by bnd, which I'd rather not do. Does a possibility exist to annotate "Include-Resource" entries so that imports coming from these inlined jars are automatically tagged with ";resolution=optional"?
Thank you very much in advance!
Best regards,
Arjen