Skip to content

Instantly share code, notes, and snippets.

@kenbot
Created January 12, 2013 23:09
Show Gist options
  • Save kenbot/4520945 to your computer and use it in GitHub Desktop.
Save kenbot/4520945 to your computer and use it in GitHub Desktop.
Simple example build.sbt file
// Sample build.sbt.
// Note:
// Blank lines need to separate the statements.
// := means you are setting the value for that key
// += means you are adding to the values for that key
name := "MyProject"
version := "0.1"
organization := "MyMegaCorp"
scalaVersion := "2.9.2"
sbtVersion := "0.13"
// The dependencies are in Maven format, with % separating the parts.
// Notice the extra bit "test" on the end of JUnit and ScalaTest, which will
// mean it is only a test dependency.
//
// The %% means that it will automatically add the specific Scala version to the dependency name.
// For instance, this will actually download scalatest_2.9.2
libraryDependencies += "org.scala-lang" % "scala-swing" % "2.9.2"
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test"
libraryDependencies += "com.github.benhutchison" % "scalaswingcontrib" % "1.3"
libraryDependencies += "junit" % "junit" % "4.8.1" % "test"
// Initial commands to be run in your REPL. I like to import various project-specific things here.
initialCommands := """
import myproject.stuff._;
import myproject.other.stuff._;
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment