如何将Play JSON库(play.api.libs.json)添加到我的sbt项目中?
当我将以下内容添加到我的plugins.sbt文件中时:
addSbtPlugin("play" % "sbt-plugin" % "2.1.0")
Run Code Online (Sandbox Code Playgroud)
我遇到了这个错误:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: play#sbt-plugin;2.1.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
Run Code Online (Sandbox Code Playgroud)
我没有找到这个库的解析器,否则我会添加它并运行sbt update.请注意,我resolvers包括http://repo.typesafe.com/typesafe/releases/.
我有一个Play项目,它使用最近移植到Scala 2.11.1的库.
我还更新了Play to Scala 2.11.1.
当我尝试运行该项目时,我得到:
[error] Modules were resolved with conflicting cross-version suffixes in {file:/...}:
[error] org.scalaz:scalaz-core _2.11, _2.10
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) Conflicting cross-version suffixes in: org.scalaz:scalaz-core
Run Code Online (Sandbox Code Playgroud)
我试图使用sbt-dependency-graph插件检测哪个是使用scalaz-core-2.10的库.但是,在依赖图树中,只有一个scalaz-core的外观:
info] | +-org.scalaz:scalaz-core_2.11:7.0.6
Run Code Online (Sandbox Code Playgroud)
所以我不确定使用scalaz-core_2.10的库是哪个...如何检测它?
我在这里看到,一旦我发现它,我可以排除它,但我的问题是如何检测哪个是我必须排除的依赖.
scala dependency-management sbt playframework playframework-2.0