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
JaVers dependency on Google Guava #692
Comments
Thanks for reporting. You are right, there should be no references to Guava in javers-core classes (except of
and should not be required. I will be happy if you contribute a PR to fix it. |
released in 3.11.0 |
Hi! |
@PodusovMaxim What version are you using? I looked inside the |
I'm using javers-3.11.0 link with com.google.common.collect.Streams You need to change import from com.google.common.collect.Streams to java.util.stream.Stream |
@PodusovMaxim Thanks for reporting this. This is something that got added after #692 was reported and fixed. Will submit a PR. |
Removed unnecessary use of Google Guava as reported by @PodusovMaxim.
finally fixed in javers-3.11.1 |
RealNodePair.java also has a dependency on com.google.common.collect.Streams => which leads to a java.lang.NoClassDefFoundError: com/google/common/collect/Streams in getPropertiesFromBothSides() |
@tWechdorn The changes to |
fixed in 5.10.3 |
As documented I just ran the below code to view the diff. It seems that Google Guava is required as a runtime dependency for the below code to work.
The code above throws an exception as shown below:
Not sure how the below line of code is used in org.javers.core.Changes.java
There are 3 more references in other classes HibernateConfig.java, JaversSpringJpaApplicationConfig.java and JaversSpringMongoApplicationConfig.java
The above code can be easily replaced with standard Java code to remove dependency on Goolge Guava.
Do let me know if these changes can be done. I will submit a PR.
The text was updated successfully, but these errors were encountered: