Advertisement
aironman

cassandra_build.sbt

Mar 8th, 2016
143
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. build.sbt
  2.  
  3. name := "My Project"
  4.  
  5. val commonSettings = Seq(
  6. organization := "net.example",
  7. version := "0.1",
  8. scalaVersion := "2.11.4",
  9. scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8")
  10. )
  11.  
  12. lazy val testDependencies = Seq (
  13. "org.scalatest" %% "scalatest" % "2.2.0" % "test"
  14. )
  15.  
  16. lazy val cassandraDependencies = Seq (
  17. "com.datastax.cassandra" % "cassandra-driver-core" % "2.1.2",
  18. "com.chrisomeara" % "pillar_2.11" % "2.0.1"
  19. )
  20.  
  21. lazy val playDependencies = Seq (
  22. jdbc,
  23. anorm,
  24. cache,
  25. ws
  26. )
  27.  
  28. lazy val common = project.in(file("common"))
  29. .settings(commonSettings:_*)
  30. .settings(libraryDependencies ++= (testDependencies ++ cassandraDependencies))
  31.  
  32. lazy val playApp = project.in(file("playApp"))
  33. .settings(commonSettings:_*)
  34. .settings(libraryDependencies ++= (testDependencies ++ cassandraDependencies ++ playDependencies))
  35. .enablePlugins(PlayScala)
  36.  
  37. lazy val main = project.in(file("."))
  38. .aggregate(common, playApp)
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement