Skip to content

Instantly share code, notes, and snippets.

@tquach
Last active December 24, 2015 02:09
Show Gist options
  • Save tquach/6729076 to your computer and use it in GitHub Desktop.
Save tquach/6729076 to your computer and use it in GitHub Desktop.
Bootstrap Build.scala file for Scala projects.
import sbt._
import Keys._
object BuildSettings {
lazy val buildName = "demo"
lazy val buildOrganization = "com.poprocksoftware"
lazy val buildScalaVersion = "2.10.2"
}
object Dependencies {
lazy val junit = "junit" % "junit" % "4.10" % "test"
lazy val scala_test = "org.scalatest" %% "scalatest" % "1.9.1" % "test"
}
object Application extends Build {
import BuildSettings._
import Dependencies._
lazy val root = Project(
id = "demo",
base = file("."),
settings = Project.defaultSettings ++ Seq(
name := buildName,
organization := buildOrganization,
scalaVersion := buildScalaVersion,
libraryDependencies ++= Seq(
scala_test, junit
)
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment