Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

antlr incompatibility #5

Open
abendt opened this issue Jun 1, 2021 · 1 comment
Open

antlr incompatibility #5

abendt opened this issue Jun 1, 2021 · 1 comment

Comments

@abendt
Copy link

abendt commented Jun 1, 2021

hi folks,

i tried to use the gettext library in one of my projects.
This project has an existing, transitive dependency on antlr. With this i couldn't successfully integrate the lib. I get errors with the message: "Could not deserialize ATN with UUID".
It seems that the underlying issue is, that gettext brings its own version of antlr, named as a different artifact (com.tunnelvisionlabs:antlr4-runtime). So we end up having different versions of antlr to be in the classpath at the same time. I tried to use excludes/setting explicit version numbers to resolve that without success as the respective libs seem to be very sensitive to minor antlr version differences.

After some further experimentation i created a gettext fat jar that contains a shaded version of antlr. Using this i was able to use gettext in my project: https://github.com/abendt/gettext/tree/createShadowJar

would you be interested in a PR to make that change generally available?

@tomcashman
Copy link
Contributor

Yep PR is welcome :-) We use com.tunnelvisionlabs:antlr4-runtime due to issue #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants