Play sbt-plugin(Build.scala)的文档在哪里?

Min*_*gyu 5 scala build sbt playframework

我目前正在使用Play版本2.1.1,并尝试修改Build.scala.

默认情况下,它导入一个名为play.Project._的包.

我一直试图找出这个包的API,以便我可以自定义我们的Build.scala文件.

我唯一拥有的是这个链接:http: //www.playframework.com/documentation/2.1.1/Build

我也尝试从这里找到它:http: //www.playframework.com/documentation/api/2.1.1/scala/index.html#package

有人能指出我这个API的位置吗?

Fyn*_*ynn 3

使用Play SBT 文档中所述的Build.scala方法。这本质上是一个sbt.Project,因此您应该仔细查看相应的 sbt API。它本身在这里定义(第 147 行):PlayProjectPlayProjectPlayProject

lazy val PlayProject = PlayRuntimeProject("Play", "play")
  .settings(
    libraryDependencies := runtime,
    sourceGenerators in Compile <+= sourceManaged in Compile map PlayVersion,
    mappings in(Compile, packageSrc) <++= scalaTemplateSourceMappings,
    parallelExecution in Test := false,
    sourceGenerators in Compile <+= (dependencyClasspath in TemplatesCompilerProject in Runtime, packageBin in TemplatesCompilerProject in Compile, scalaSource in Compile, sourceManaged in Compile, streams) map ScalaTemplates
  ).dependsOn(SbtLinkProject, PlayExceptionsProject, TemplatesProject, IterateesProject, JsonProject)
Run Code Online (Sandbox Code Playgroud)

PlayRuntimeProject在同一文件中定义的。