SBT构建中的Reactivemongo和Reactivemongo-play-JSON依赖性问题



当我在build.sbt中包含以下内容(使用Scala版本2.12.1)

"org.reactivemongo" %% "reactivemongo" % "0.12.1",
"org.reactivemongo" %% "reactivemongo-play-json" % "0.12.1",

我有错误...

    Error:scalac: missing or invalid dependency detected while loading class file 'LowerImplicitBSONHandlers.class'.
    Could not access type Writes in package play.api.libs.json,
because it (or its dependencies) are missing.
    Check your build definition for missing or conflicting dependencies
    (Re-run with `-Ylog-classpath` to see the problematic classpath.)
    A full rebuild may help if 'LowerImplicitBSONHandlers.class' was compiled against an incompatible version of play.api.libs.json.

可以重新veactivemongo和reactivemongo-play-json一起生活吗?

谢谢纳撒尼尔

似乎您需要将play-json作为依赖项包含在依赖项中。有些奇怪,因为我认为Reactivemongo-play-Json的整个想法是在不需要比赛的情况下获得JSON支持。无论如何,现在的汇编在包括以下依赖性之后起作用:" com.typesafe.play" %%" play-json"%" 2.6.0-m3"

最新更新