Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typesafe Play WS as dependency in SBT project

Since Play Framework 2.3.x, Play WS is a dependent library. Reference:

http://playframework.com/documentation/2.3.x/Migration23

How do I include it in a SBT project?

Answer:

"com.typesafe.play" %% "play-ws" % "2.3.1"
like image 783
Carl Emmoth Avatar asked Jul 02 '14 09:07

Carl Emmoth


2 Answers

Guys for anyone who stumbled it's better to add the following line:

libraryDependencies += javaWs
like image 142
vadim Avatar answered Oct 24 '22 01:10

vadim


For Build.scala you should import play.Play.autoImport._ in order to use the ws pattern. In build.sbt you can use it off the bat.

like image 33
Mihai Soloi Avatar answered Oct 24 '22 00:10

Mihai Soloi