Created
November 17, 2011 16:16
-
-
Save ctataryn/1373562 to your computer and use it in GitHub Desktop.
sbt probs
This file contains hidden or 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._ | |
import com.github.siasia.WebPlugin | |
object Build extends sbt.Build { | |
import Dependencies._ | |
lazy val myProject = Project( | |
"billratecalc", | |
file("."), | |
settings = basicSettings ++ WebPlugin.webSettings ++ Seq( | |
libraryDependencies ++= Seq( | |
Compile.akkaActor, | |
Compile.sprayServer, | |
Test.specs2, | |
Container.jettyWebApp, | |
Container.akkaSlf4j, | |
Container.slf4j, | |
Container.logback | |
) | |
) | |
) | |
lazy val basicSettings = Defaults.defaultSettings ++ Seq( | |
organization := "com.grindsoftware", | |
version := "0.1", | |
scalaVersion := "2.9.1", | |
scalacOptions := Seq("-deprecation", "-encoding", "utf8"), | |
resolvers ++= Dependencies.resolutionRepos | |
) | |
} | |
object Dependencies { | |
val resolutionRepos = Seq( | |
"Akka Repository" at "http://akka.io/repository/", | |
ScalaToolsSnapshots, | |
//CWT | |
"Maven Repo" at "http://repo1.maven.org/maven2/" | |
) | |
//CWT | |
val xsbtWebPlugin_2.9.1 = "com.github.siasia" % "xsbt-web-plugin_2.9.1" % "0.11.1-0.2.9" | |
object V { | |
val akka = "1.2" | |
val spray = "0.8.0-RC2" | |
val specs2 = "1.6.1" | |
val jetty = "8.0.3.v20111011" | |
val slf4j = "1.6.1" | |
val logback = "0.9.29" | |
} | |
object Compile { | |
val akkaActor = "se.scalablesolutions.akka" % "akka-actor" % V.akka % "compile" | |
val sprayServer = "cc.spray" % "spray-server" % V.spray % "compile" | |
} | |
object Test { | |
val specs2 = "org.specs2" %% "specs2" % V.specs2 % "test" | |
} | |
object Container { | |
val jettyWebApp = "org.eclipse.jetty" % "jetty-webapp" % V.jetty % "container" | |
val akkaSlf4j = "se.scalablesolutions.akka" % "akka-slf4j" % V.akka | |
val slf4j = "org.slf4j" % "slf4j-api" % V.slf4j | |
val logback = "ch.qos.logback" % "logback-classic" % V.logback | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment