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

Remove antlr4-runtime dependency #2006

Merged
merged 1 commit into from
Feb 28, 2022
Merged

Conversation

hgschmie
Copy link
Contributor

Inline the dependency into the core jar. This removes the long
standing problem that jdbi creates version conflicts when used in
projects that also use antlr4 and that use a different runtime
version. Unfortunately antlr insists on a strong relationship between
the generated classes for the grammar and the runtime.

Inlining this dependency makes allows JDBI users to choose their antlr
version arbitrarily as JDBI will use its private version.

Inline the dependency into the core jar. This removes the long
standing problem that jdbi creates version conflicts when used in
projects that also use antlr4 and that use a different runtime
version. Unfortunately antlr insists on a strong relationship between
the generated classes for the grammar and the runtime.

Inlining this dependency makes allows JDBI users to choose their antlr
version arbitrarily as JDBI will use its private version.
@stevenschlansker
Copy link
Member

Fixes #1798

@@ -792,6 +793,16 @@
</pomElements>
</configuration>
</plugin>
<plugin>
<groupId>org.basepom.maven</groupId>
<artifactId>inline-maven-plugin</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Looks like the repository is not available? https://github.com/basepom/inline-maven-plugin

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops. It is public now. I kept it private for a while because the code changed a lot.

@hgschmie hgschmie merged commit 591e00d into jdbi:master Feb 28, 2022
@hgschmie hgschmie deleted the inline-antlr branch February 28, 2022 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants