SBT – scalatest + jdbc

In the sbt project definition add the following to get scalatest and mysql drivers
(project file: project/build/ProjectName.scala)

import sbt._ 
 
class ProjectName(info: ProjectInfo) extends DefaultProject(info) { 
  val scalaToolsSnapshots = ScalaToolsSnapshots
  val scalatest = "org.scalatest" % "scalatest" % "1.0.1-for-scala-2.8.0.RC1-SNAPSHOT"
  val mysql = "mysql" % "mysql-connector-java" % "5.1.12" % "compile"
}

Then type sbt update

This should get scalatest & mysql up and running with SBT.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s