Search code examples
scalaplayframeworkversion

How to find Play Framework version of a project?


I am using Play Framework for an application. I am finding some in inconsistencies with the documentation. Such as, in the documentation it is written that the constructor of the class FakeHeaders should have a map of string and seq of string. This is written in the Documentation.

case class FakeHeaders (data: Map[String, Seq[String]]) extends Headers with Product with Serializable

This is the link of the documentation.

But when I am writing it, I am getting a compilation error saying that FakeHeaders should have a seq instead of a map.

This is the error I am getting.

[error]  found   : Map[String,Seq[String]]
[error]  required: Seq[(String, Seq[String])]

I believe it is because the framework that I am using is old. But I don't know what version I am using. How do I find out the playframework version of an existing project?


Solution

  • In plugins.sbt:

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

    My version is 2.3.8.