Mongo java driver upgrade from 3.12.1 to 4.2.3

Hi
I’m currently migrating from spring2.3.6 to spring2.5.8 for mongo-java-driver upgradation. During this process of changing the spring version and building the application via gradle and starting the app, various errors were faced due to deprecation, dependency path change, adding dependencies on applying those kinds of changes we were able to run the application. Hope this process we followed may help.