Skip to content

Fix OSGi imports#3675

Merged
parrt merged 1 commit intoantlr:devfrom
rovarga:osgi
Jun 25, 2022
Merged

Fix OSGi imports#3675
parrt merged 1 commit intoantlr:devfrom
rovarga:osgi

Conversation

@rovarga
Copy link
Contributor

@rovarga rovarga commented Apr 23, 2022

org.antlr.v4.gui is only used for backwards compatibility, but the
manifest generated by upgraded maven-bundle-plugin generates an
Import-Package requirement. This breaks the ability to load
antlr4-runtime in an OSGi enviroment, when nothing provides
org.antlr.v4.gui.

Fix this by specifying resultion as optional.

Signed-off-by: Robert Varga robert.varga@pantheon.tech

org.antlr.v4.gui is only used for backwards compatibility, but the
manifest generated by upgraded maven-bundle-plugin generates an
Import-Package requirement. This breaks the ability to load
antlr4-runtime in an OSGi enviroment, when nothing provides
org.antlr.v4.gui.

Fix this by specifying resultion as optional.

Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants