Closed fcurts closed 5 years ago
The reference release no longer uses the annotations, but this project does. The antlr4-annotations bundle is usable for projects that want the annotations but don't need the rest of ANTLR. Since the classes get embedded in the antlr4-runtime bundle, I was able to mark the dependency as optional so it won't get picked up by downstream projects unless they explicitly depend on it. See #51.
Why declare a dependency at all? There is no dependency now that annotations are embedded.
The annotations are embedded by the build process; inside this repository the types are not embedded and omitting the dependency would produce a compilation error.
The POM of
com.tunnelvisionlabs:antlr4-runtime
declares a compile dependency oncom.tunnelvisionlabs:antlr4-annotations
. However, it seems that these annotations have been moved intoantlr4-runtime
, making theantlr4-annotations
module obsolete.org.antlr4
no longer publishes anantlr4-annotations
module (latest version is 4.3); hence I suspect this is a left-over that should be removed.