sbt笔记八 scala构建定义
.scala构建定义(sbt 0.13.0 Snapshot) 当前页面假定你已经阅读了Getting Started Guide的前面章节,尤其是.sbt build definition和more about settings。 sbt是递归的 build.sbt非常简单,它隐藏了sbt实际是如何工作的。sbt构建是用Scala代码定义的。这些代码自身需要建立。还有比sbt更好的方式吗? project文件夹是你项目中的另一个子项目,它知道如何构建你的项目。子项目(理论上)可以可以做任何其他项目能做的事情。你的构建定义就是一个sbt项目。 如果你喜欢,你可以通过创建一个project/project/文件夹,来调整构建定义项目的构建定义。 这有一个例证。 hello/ # your project's base directory Hello.scala # a source file in your project (could be in # src/main/scala too) build.sbt # build.sbt is part of the source code for the # build definition project inside project/ project/ # base directory of the build