A Scala SBT build.sbt example file (build.sbt example, syntax)

The URL I've linked to shows many examples of the Scala SBT build.sbt syntax. Here's a short clip from some of the examples:

name := "My Project"

version := "1.0"

organization := "org.myproject"

// set the Scala version used for the project
scalaVersion := "2.9.0-SNAPSHOT"

// add compile dependencies on some dispatch modules
libraryDependencies ++= Seq(
	"net.databinder" %% "dispatch-meetup" % "0.7.8",
	"net.databinder" %% "dispatch-twitter" % "0.7.8"
)

// append several options to the list of options passed to the Java compiler
javacOptions ++= Seq("-source", "1.5", "-target", "1.5")

// append -deprecation to the options passed to the Scala compiler
scalacOptions += "-deprecation"

// set the main class for packaging the main jar
// 'run' will still auto-detect and prompt
// change Compile to Test to set it for the test jar
mainClass in (Compile, packageBin) := Some("myproject.MyMain")

// set the main class for the main 'run' task
// change Compile to Test to set it for 'test:run'
mainClass in (Compile, run) := Some("myproject.MyMain")

// add a maven-style repository
resolvers += "name" at "url"

// add a sequence of maven-style repositories
resolvers ++= Seq("name" at "url")

// define the repository to publish to
publishTo := Some("name" at "url")

// only show warnings and errors on the screen for compilations.
//  this applies to both test:compile and compile and is Info by default
logLevel in compile := Level.Warn

// only show warnings and errors on the screen for all tasks (the default is Info)
//  individual tasks can then be more verbose using the previous setting
logLevel := Level.Warn

// only store messages at info and above (the default is Debug)
//   this is the logging level for replaying logging with 'last'
persistLogLevel := Level.Debug

See the URL I've linked to for the full build.sbt example.