How to find a play player version of a project?

I am using playframework for an application. I find some in the inconsistencies with the documentation. For example, the documentation says that the constructor of the FakeHeaders class must have a line map and a seq line. This is written in the documentation.

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

This is the documentation link .

But when I write this, I get a compilation error saying that FakeHeaders should have 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 that this is due to the fact that I am using the old structure. But I do not know which version I am using. How to find out the playframework version for an existing project?

I hope I put my question clear. If there is some confusion, then ask. Thanks in advance.

+5
source share
1 answer

In plugins.sbt :

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

My version is 2.3.8 .

+8
source

All Articles