我有一个playframework子项目。目前,我将其定义为父build.sbt
lazy val silhouetteModule = (project in file("modules/silhouette"))
.enablePlugins(PlayScala)
我希望将这些知识委托给子项目build.sbt。如何调用子项目这个enablePlugins?
import play.PlayScala
scalaVersion := "2.11.1"
name := "play-silhouette-seed"
version := "1.0"
libraryDependencies ++= Seq(
"com.mohiva" %% "play-silhouette" % "1.0",
"org.webjars" %% "webjars-play" % "2.3.0",
"org.webjars" % "bootstrap" % "3.1.1",
"org.webjars" % "jquery" % "1.11.0",
"net.codingwell" %% "scala-guice" % "4.0.0-beta4",
cache
)
//this doesn't work
currentThisProject.enablePlugins(PlayScala)
答案 0 :(得分:1)
您可以直接在子项目的enablePlugins
文件中致电build.sbt
:
enablePlugins(PlayScala)