Я пытаюсь использовать alpakka-mongodb на основе docs .
Мои зависимости выглядят так:
object Versions {
val alpakkaMongo = "2.0.0"
val akkaVersion = "2.5.31"
}
lazy val deps = Seq(
"com.lightbend.akka" %% "akka-stream-alpakka-mongodb" % Versions.alpakkaMongo,
"com.typesafe.akka" %% "akka-stream" % Versions.akkaVersion
)
и дерево зависимостей выглядит как это:
[info] +-com.lightbend.akka:akka-stream-alpakka-mongodb_2.12:2.0.0 [S]
[info] | +-com.typesafe.akka:akka-stream_2.12:2.5.31 [S]
[info] | | +-com.typesafe.akka:akka-actor_2.12:2.5.31 [S]
[info] | | | +-com.typesafe:config:1.3.3
[info] | | | +-org.scala-lang.modules:scala-java8-compat_2.12:0.8.0 [S]
[info] | | |
[info] | | +-com.typesafe.akka:akka-protobuf_2.12:2.5.31 [S]
[info] | | +-com.typesafe:ssl-config-core_2.12:0.3.8 [S]
[info] | | | +-com.typesafe:config:1.3.3
[info] | | | +-org.scala-lang.modules:scala-parser-combinators_2.12:1.1.2 [S]
[info] | | |
[info] | | +-org.reactivestreams:reactive-streams:1.0.2
[info] | |
[info] | +-org.mongodb:mongodb-driver-reactivestreams:1.12.0
[info] | +-org.mongodb:mongodb-driver-async:3.11.0
[info] | | +-org.mongodb:bson:3.11.0
[info] | | +-org.mongodb:mongodb-driver-core:3.11.0
[info] | | +-org.mongodb:bson:3.11.0
[info] | |
[info] | +-org.reactivestreams:reactive-streams:1.0.2
[info] |
[info] +-com.typesafe.akka:akka-stream_2.12:2.5.31 [S]
[info] +-com.typesafe.akka:akka-actor_2.12:2.5.31 [S]
[info] | +-com.typesafe:config:1.3.3
[info] | +-org.scala-lang.modules:scala-java8-compat_2.12:0.8.0 [S]
[info] |
[info] +-com.typesafe.akka:akka-protobuf_2.12:2.5.31 [S]
[info] +-com.typesafe:ssl-config-core_2.12:0.3.8 [S]
[info] | +-com.typesafe:config:1.3.3
[info] | +-org.scala-lang.modules:scala-parser-combinators_2.12:1.1.2 [S]
[info] |
[info] +-org.reactivestreams:reactive-streams:1.0.2
Однако, когда я пытаюсь сделать import org.mongodb.scala.bson.codecs.DEFAULT_CODEC_REGISTRY
, я получаю cannot resolve symbol mongodb
Что я здесь делаю не так? Благодарю за помощь!