我正在尝试使用 sbt 0.12 在 Scala 中创建一个新的播放应用程序 myFirstApp。我在 myFirstApp/ 文件夹中构建了 build.sbt。我还将 plugins.sbt 添加到 myFirstApp/project/ 文件夹中。
构建.sbt
import play.Project._
name := "My first application"
version := "1.0"
playScalaSettings
插件.sbt
// Typesafe snapshots
resolvers += "Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots/"
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/"
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.0-M1")
build.properties
sbt.version=0.12.3
从 myFirstApp 文件夹执行 sbt 时,出现此错误:
error: not found: value playScalaSettings
我该如何摆脱它?