This is an example of how easy it is to declare dependencies in a scala project using Simple Build Tool.

import sbt._
class SpecsProject(info: ProjectInfo) extends DefaultProject(info) {
  val specsRepo = "Specs Repository" at "http://specs.googlecode.com/svn/maven2/"

  val specs = "org.scala-tools.testing" % "specs" % "1.4.4"
  val scalacheck = "org.scala-tools.testing" % "scalacheck" % "1.5"
  val mockito = "org.mockito" % "mockito-core" % "1.7"
  val junit = "junit" % "junit" % "4.4"
}

I love how Scala lets me code without being force-fed XML everywhere I turn.

Advertisements