sbt - 将IntelliJ Play应用程序迁移到2.3.x.

时间:2014-10-21 02:57:00

标签: intellij-idea playframework sbt

我开始使用IntelliJ / Scala / Play我创建了一个新的Play2应用程序,它运行得很好。我一直在尝试将其从Play 2.2.1迁移到2.3.5但我收到错误

无法解析符号enablePlugins

我的文件看起来像

build.properties:

sbt.version=0.13.5

plugins.sbt:

logLevel := Level.Warn

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

// Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.0")

// web plugins
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.1")

addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.1")

addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.0.0")

build.sbt:

import play.Project._

name := "Play2App"

version := "1.0"

//playScalaSettings

lazy val root = (project in file(".")).enablePlugins(PlayJava SbtWeb)

感谢您的帮助

1 个答案:

答案 0 :(得分:0)

你错过了一个逗号" PlayJava"和" SbtWeb"

lazy val root = (project in file(".")).enablePlugins(PlayJava,SbtWeb)