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
Incompatible mongodb driver version between Javers & spring-data-mongodb #395
Comments
I found old version of javers-persistence-mongo (1.2.0) depends working mongodb driver version for me, not sure if it works with modern Javers core. |
You are right, looks like the spring-boot-starter-data-mongodb:1.3.0 dependes on the old version of mongo-java-driver for some reason. I will check if they fixed it in 1.3.5 ... |
Spring Boot have bumped mongo-java-driver to 3.x in 1.4.0.M3. |
I folked a repo and re-implement @bartoszwalacik If you need this push to master repo, plz let me know. |
https://spring.io/blog/2016/07/05/spring-boot-1-4-0-rc1-available-now |
fixed in JaVers 2.1.1 |
Javers dependencies list:
Spring-data-mongodb dependencies list:
As you can see, Javers depends higher version then spring-data-mongodb. These two versions are hugely different that I even couldn't choose one and ignore another one. In another word, if I choose to use 3.0.4, spring-data-mongodb will be broken.
Now I have to try to implement my own JaversMongoRepository, which is not good and risky.
It's better to have a backward compatible version of javers-persistence-mongo, which use mongo driver 2.x to live with spring-data-mongo.
The text was updated successfully, but these errors were encountered: