I want to use http://dispatch.databinder.net/Dispatch.html .
The site indicates I must add this to project/plugins.sbt:
libraryDependencies += "net.databinder.dispatch" %% "core" % "0.9.1"
which I did. I then restarted the play console and compiled.
Importing doesnt work:
import dispatch._
Guess I have been silly, but then I never used a build system when using Java.
How must I trigger the process that downloads/builds the package? Where are the jars (or equivalent) stored; can I reuse them? When is the package available for use by the Play application?
It doesn’t say you should add it to
project/plugins.sbt. That is the wrong place. It says to add to thebuild.sbtfile, on the root of your project. Being a Play project,project/Build.scalamight be more appropriate — I don’t know if it will pick up settings frombuild.sbtor not.To add the dependency in your Build.scala: