Last active
December 24, 2015 02:09
-
-
Save tquach/6729076 to your computer and use it in GitHub Desktop.
Bootstrap Build.scala file for Scala projects.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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