When does a SBT package get downloaded/built?

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 the build.sbt file, on the root of your project. Being a Play project, project/Build.scala might be more appropriate -- I don't know if it will pick up settings from build.sbt or not.

To add the dependency in your Build.scala:

val appDependencies = Seq(
  "net.databinder.dispatch" %% "core" % "0.9.1"

Need Your Help

varchar and composite primary keys in mysql?

mysql performance primary-key varchar

I am developing a logging database, the ids of the components being logged in this case are not determined by the database itself, but by the system that sends the report. The system id is a unique

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.