Javers dependencies list:
+--- org.javers:javers-persistence-mongo:2.0.2
| \--- org.mongodb:mongo-java-driver:3.0.4
Spring-data-mongodb dependencies list:
+--- org.springframework.boot:spring-boot-starter-data-mongodb:1.2.5.RELEASE
| +--- org.springframework.boot:spring-boot-starter:1.2.5.RELEASE (*)
| +--- org.mongodb:mongo-java-driver:2.12.5 -> 3.0.4
| +--- org.springframework:spring-core:4.1.7.RELEASE (*)
| +--- org.springframework:spring-tx:4.1.7.RELEASE (*)
| \--- org.springframework.data:spring-data-mongodb:1.6.3.RELEASE
| +--- org.springframework:spring-tx:4.0.9.RELEASE -> 4.1.7.RELEASE (*)
| +--- org.springframework:spring-context:4.0.9.RELEASE -> 4.1.7.RELEASE (*)
| +--- org.springframework:spring-beans:4.0.9.RELEASE -> 4.1.7.RELEASE (*)
| +--- org.springframework:spring-core:4.0.9.RELEASE -> 4.1.7.RELEASE (*)
| +--- org.springframework:spring-expression:4.0.9.RELEASE -> 4.1.7.RELEASE (*)
| +--- org.springframework.data:spring-data-commons:1.9.3.RELEASE (*)
| +--- org.mongodb:mongo-java-driver:2.12.5 -> 3.0.4
| +--- org.slf4j:slf4j-api:1.7.12
| \--- org.slf4j:jcl-over-slf4j:1.7.12 (*)
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.
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.