-
Notifications
You must be signed in to change notification settings - Fork 31
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
Mongo Driver version 3.8.2 used but expecting 3.10.0 #182
Comments
It might be that version 3.8.2 is forced by Spring BOM. Please try setting the following in the build.gradle
|
Thanks @puneetbehl - I gave it a go and saw this:
I had tried this before and saw the error but didn't persist. It seems like the Gorm for Mongo uses the same version param? If I also change the dependencies section to an explicit version: compile "org.grails.plugins:mongodb:7.0.1" Then it does resolve the correct version:
The changes are here: andrewcanby-finocomp/gorm-mongo-driver-version@283bac0 So it works... but I feel like this is more of a workaround, and people might get tripped up on it. In the |
This is changed in Grails 5. See https://github.com/grails/grails-core/blob/v5.0.1/grails-bom/plugins.properties#L2 |
Background
The documentation for Gorm for MongoDB version 7.0 says there is:
At first glance I thought this meant the bundled version was updated to 3.10.0, but it still seems to be on 3.8.2.
However - looking at the code it seems to imply it should be 3.10.0.
Example
Create a vanilla Grails 4.0.4 project setup using:
grails create-app --profile=rest-api mongo-version-test
compile "org.grails.plugins:mongodb"
./gradlew assemble dependencyInsight --dependency "org.mongodb:mongodb-driver"
to see dependency resolved as3.8.2
.Sample project
https://github.com/andrewcanby-finocomp/gorm-mongo-driver-version
The text was updated successfully, but these errors were encountered: