标签: scalariform

如何自动格式化sbt构建文件?

我想用scalariform格式化我的sbt构建文件.在启动sbt时,是否可以在构建定义本身上运行标量?

scala sbt scalariform

11
推荐指数
1
解决办法
2100
查看次数

未解决的依赖性SBT,标量

我收到此编译错误:

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

scala ivy sbt typesafe-stack scalariform

1
推荐指数
1
解决办法
906
查看次数

标签 统计

sbt ×2

scala ×2

scalariform ×2

ivy ×1

typesafe-stack ×1