6

我正在尝试使用 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

我该如何摆脱它?

4

1 回答 1

8

只是改变

build.properties

sbt.version=0.13.0

插件.sbt

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.3")

截至 2014 年 5 月 9 日,该插件的最后一个稳定版本是 2.2.3。您可以查看当前版本的Typesafe 存储库。

目前没有适用于 Play 2.2 的 SBT 0.12.x 插件:http ://repo.typesafe.com/typesafe/releases/com.typesafe.play/sbt-plugin/scala_2.10/ 并且 I M1 也不在 repo 中http://repo.typesafe.com/typesafe/releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/

于 2013-09-17T10:36:46.637 回答