Skip to content

Remove antlr4-runtime dependency#2006

Merged
hgschmie merged 1 commit intojdbi:masterfrom
hgschmie:inline-antlr
Feb 28, 2022
Merged

Remove antlr4-runtime dependency#2006
hgschmie merged 1 commit intojdbi:masterfrom
hgschmie:inline-antlr

Conversation

@hgschmie
Copy link
Copy Markdown
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
Copy Markdown
Member

Fixes #1798

</plugin>
<plugin>
<groupId>org.basepom.maven</groupId>
<artifactId>inline-maven-plugin</artifactId>
Copy link
Copy Markdown
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
Copy Markdown
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