Plugins plugin.sbt不能添加多个插件。

Plugins plugin.sbt不能添加多个插件。,plugins,build,playframework-2.0,sbt,Plugins,Build,Playframework 2.0,Sbt,我使用sbt和playframework和activator构建一个webapp。 我的sbt版本是0.13.0 我将plugin.sbt文件更改为: logLevel := Level.Warn // The Typesafe repository resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" // Use the Play sbt plugin for Play pr

我使用sbt和playframework和activator构建一个webapp。 我的sbt版本是0.13.0

我将plugin.sbt文件更改为:

logLevel := Level.Warn

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0")
然后错误是:

F:\mysource\play-slick>sbt
F:\mysource\play-slick\project\plugins.sbt:9: error: eof expected but ';' found.

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0")
^
[error] Error parsing expression.  Ensure that settings are separated by blank lines.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

我想知道如何在plugins.sbt?

中添加多个SbtPlugin。在
.sbt
文件中,设置之间必须有一个空行(请注意错误消息,
确保设置用空行分隔。
)。因此,它应该是:

logLevel := Level.Warn

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0")
有关
.sbt
文件的更多详细信息,请参阅