Trying to compile a project containing Play Framework as a subproject I receive this error:
~/my-project/web/build.sbt:8: error: not found: value PlayScala
lazy val `web` = (project in file(".")).enablePlugins(PlayScala)
build.sbt
name := "my-project"
version := "1.0"
scalaVersion := "2.11.5"
lazy val `my-project` = (project in file("."))
.aggregate( web)
lazy val web = project
plugins.sbt
logLevel := Level.Warn
web/build.sbt
name := "web"
version := "1.0"
scalaVersion := "2.11.1"
lazy val `web` = (project in file(".")).enablePlugins(PlayScala)
libraryDependencies += "org.scalatest" % "scalatest_2.11" % "2.2.1" % "test"
libraryDependencies ++= Seq( jdbc , anorm , cache , ws )
unmanagedResourceDirectories in Test <+= baseDirectory ( _ /"target/web/public/test" )
web/project/plugins.sbt
logLevel := Level.Warn
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.7")
The error goes away when I copy web/project/plugins.sbt
to project/plugins.sbt
This is not what I want since web
is a subproject and PlayScala is a dependency of the subproject alone.