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 Guava dependency with no direct use in codebase #1213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

magdel
Copy link

@magdel magdel commented Oct 18, 2024

I found no direct use of Guava library in library codebase. Why should we have it in dependencies? Use the jininja often clashes with project`s Guava library version.

Copy link

@thadguidry thadguidry left a comment

Choose a reason for hiding this comment

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

LGTM, and compiles successful. mvn dependency:tree shows no issues.
Looks like Guava is indeed still needed, at least for JinjavaConfig

Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableSet
 at com.hubspot.jinjava.JinjavaConfig$Builder.(JinjavaConfig.java:327)

Copy link

@thadguidry thadguidry left a comment

Choose a reason for hiding this comment

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

Guava is still needed it seems currently, at least for JinjavaConfig

@magdel
Copy link
Author

magdel commented Nov 25, 2024

@thadguidry thank you. Now I see it comes from other dependencies like
hubspot-style
immutables-exceptions

Removing its now I see how much it is used. And with language level 8 Guava is hardly replaceble

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

Successfully merging this pull request may close these issues.

2 participants