未解决的依赖性SBT,标量

use*_*214 1 scala ivy sbt typesafe-stack scalariform

我收到此编译错误:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.sbt#sbt-scalariform;1.3.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      com.typesafe.sbt:sbt-scalariform:1.3.0 (scalaVersion=2.11, sbtVersion=0.13)
[warn] 
Run Code Online (Sandbox Code Playgroud)

在我的项目的根目录中,我有一个build.sbt文件:

   scalaVersion in ThisBuild := "2.11.6"
Run Code Online (Sandbox Code Playgroud)

我还有一个core/build.sbt文件,其中包含多个解析器,libraryDependencies和排除项.

project/plugins.sbt:

   addSbtPlugin(...)
   resolvers += "Typesafe Public Repo" at "http://repo.typesafe.com/typesafe/releases"
   resolvers += "JBoss Repository" at "http://repository.jboss.org/nexus/content/groups/public//"
Run Code Online (Sandbox Code Playgroud)

〜/名.bst/0.13/global.sbt

   scalaVersion := "2.11.6"
Run Code Online (Sandbox Code Playgroud)

Dal*_*and 5

您需要删除scalaVersion := "2.11.6"~/.sbt/0.13/global.sbt.

在sbt 0.13中,sbt及其插件生态系统目前正在使用Scala 2.10.