1

I am receiving this compilation error:

[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] 

In the root of my project I have a build.sbt file:

   scalaVersion in ThisBuild := "2.11.6"

I also have a core/build.sbt file with several resolvers, libraryDependencies, and exclusions.

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//"

~/.sbt/0.13/global.sbt

   scalaVersion := "2.11.6"
4

2 回答 2

5

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

在 sbt 0.13 中,sbt 及其插件生态系统当前使用 Scala 2.10。

于 2015-07-28T15:59:10.927 回答
1

sbt-scalariform 改变了 groupId/organization

于 2018-03-31T14:45:24.793 回答