play2war / play2-war-plugin

WAR Plugin for Play framework 2.x
Apache License 2.0
443 stars 71 forks source link

Reference to undefined settings #298

Closed vkhazin closed 8 years ago

vkhazin commented 8 years ago

Trying to turn simple-rest-scala seed project into a war file.

./project/plugins.sbt

    addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.6")
    //Play2War
    addSbtPlugin("com.github.play2war" % "play2-war-plugin" % "1.4-beta1")

./build.sbt

    import com.github.play2war.plugin._

    name := """simple-rest-scala"""

    version := "1.0-SNAPSHOT"

    Play2WarPlugin.play2WarSettings //line number 7

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

    fork in run := true

Build Error:

References to undefined settings: 
  *:servletVersion from *:libraryDependencies (/Users/vkhazin/Projects/Samples/play-framework-war/build.sbt:7)
  *:servletVersion from *:war (/Users/vkhazin/Projects/Samples/play-framework-war/build.sbt:7)
  *:servletVersion from *:war (/Users/vkhazin/Projects/Samples/play-framework-war/build.sbt:7)
yanns commented 8 years ago

see https://github.com/play2war/play2-war-plugin/wiki/Configuration#servlet-31-container-configuration

vkhazin commented 8 years ago

Thank you!