加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-16 18:35:27 所属栏目:安全 来源:网络整理
导读:我目前正在使用Play版本2.1.1,并尝试修改Build. scala. 默认情况下,它导入一个名为play.Project._的包. 我一直试图找出这个包的API,以便我可以自定义我们的Build.scala文件. 我唯一拥有的是这个链接: http://www.playframework.com/documentation/2.1.1/Bui
我目前正在使用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的位置吗?

解决方法

Build.scala使用 Play SBT documentation中描述的PlayProject.这个PlayProject基本上是 sbt.Project,所以你应该仔细看看 corresponding sbt API.PlayProject本身定义为 here(第147行):

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)

PlayRuntimeProject在同一文件中定义.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读