Mongo-java-driver, gradle entry for MongoDB 4.4

I have real problems with the MongoDB Atlas live chat. I have the impression that support
does not know what gradle is.

In late January 2021 my M0 Atlas cluster will be automatically upgraded from running MongoDB 4.2 to 4.4. So far no one can tell me what the new gradle entry for MongoDB 4.4 is.

Current finds the entry: implementation(“org.mongodb:mongo-java-driver:3.12.7”)

Can someone help me and tell me the correct Gradle entry for MongoDB 4.4?

Thanks
Axel

Hi @Axel_Ligon,

There are 2 MongoDB Java drivers:

In the respective installation guides, you can find the Maven and the Gradle entries:

So to sum up:

  dependencies {
      compile 'org.mongodb:mongodb-driver-sync:4.1.1'
  }

or

  dependencies {
      compile 'org.mongodb:mongodb-driver-reactivestreams:4.1.1'
  }

If you are wondering about compatibility between the driver and MongoDB, it’s here and here.

I hope it helps.

Cheers,
Maxime.

2 Likes

Thanks,

With

implementation(“org.mongodb:mongodb-driver-legacy:4.1.1”)

seems to run. The push test was positive.
I hope also under MongoDB 4.4.

Thank you.

It will, it’s the latest version so all good :ok_hand: !

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.