Created
April 2, 2012 11:47
-
-
Save elvan/2282925 to your computer and use it in GitHub Desktop.
Example of SBT build file for Spring application
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
sbt.version=0.11.2 |
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 SpringExampleBuild extends Build { | |
private val springVersion = "3.1.1.RELEASE" | |
private val slf4jVersion = "1.6.4" | |
val exampleSettings = Seq( | |
name := "SpringExample", | |
version := "1.0-SNAPSHOT", | |
scalaVersion := "2.9.1" | |
) | |
val exampleDeps = Seq( | |
"org.springframework" % "spring-context" % springVersion exclude("commons-logging", "commons-logging"), | |
"org.springframework" % "spring-test" % springVersion, | |
"org.slf4j" % "slf4j-api" % slf4jVersion, | |
"org.slf4j" % "jcl-over-slf4j" % slf4jVersion % "runtime", | |
"org.slf4j" % "slf4j-log4j12" % slf4jVersion % "runtime", | |
"log4j" % "log4j" % "1.2.16" % "runtime" exclude("javax.mail", "mail") exclude("javax.jms", "jms") exclude("com.sun.jdmk", "jmxtools") exclude("com.sun.jmx", "jmxri"), | |
"junit" % "junit" % "4.10" % "test", | |
"com.novocode" % "junit-interface" % "0.8" % "test", | |
"org.scalatest" %% "scalatest" % "1.7.1" % "test" | |
) | |
lazy val example = Project( | |
id = "SpringExample", | |
base = file("."), | |
settings = Defaults.defaultSettings ++ exampleSettings ++ Seq( | |
libraryDependencies ++= exampleDeps, | |
resourceDirectory <<= baseDirectory { _ / "src/main/resources" } | |
) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment