Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 13th, 2014  |  syntax: None  |  size: 2.49 KB  |  views: 231  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import Common._
  2. import play.Play.autoImport._
  3. import play.PlayScala
  4. import Dependencies._
  5. import sbt.Keys._
  6. import sbt._
  7.  
  8. name := "mainApp"
  9.  
  10. appSettings
  11.  
  12. mainAppSettings
  13.  
  14. libraryDependencies ++= Seq(
  15.   ws,
  16.   gson,
  17.   scalaTest,
  18.   jodaTime,
  19.   mockitoAll
  20. )
  21.  
  22. lazy val root =
  23.   project.in(file(".")).enablePlugins(PlayScala)
  24.     .dependsOn(
  25.       precog, engine, codeParser,
  26.       repositorySystem, frameworkDependency,
  27.       dependencyBuilder, enginePlugins,
  28.       services, webServices,
  29.       databaseTestDependency
  30.     ).aggregate(
  31.       precog, engine, codeParser,
  32.       repositorySystem, framework,
  33.       dependencyBuilder, enginePlugins,
  34.       services, webServices
  35.     )
  36.  
  37. lazy val precog = project.in(file("components/precog"))
  38.   .dependsOn(frameworkDependency, dependencyBuilder)
  39.   .aggregate(framework, dependencyBuilder)
  40.  
  41. lazy val engine = project.in(file("components/engine"))
  42.   .dependsOn(frameworkDependency, dependencyBuilder)
  43.   .aggregate(framework, dependencyBuilder)
  44.  
  45. lazy val codeParser = project.in(file("components/codeParser"))
  46.   .dependsOn(frameworkDependency, dependencyBuilder)
  47.   .aggregate(framework, dependencyBuilder)
  48.  
  49. lazy val repositorySystem = project.in(file("components/repositorySystem"))
  50.   .dependsOn(frameworkDependency, dependencyBuilder)
  51.   .aggregate(framework, dependencyBuilder)
  52.  
  53. lazy val enginePlugins = project.in(file("components/enginePlugins"))
  54.   .dependsOn(frameworkDependency)
  55.   .aggregate(framework)
  56.  
  57. lazy val dependencyBuilder = project.in(file("components/dependencyBuilder"))
  58.   .dependsOn(frameworkDependency)
  59.   .aggregate(framework)
  60.  
  61. lazy val services = project.in(file("components/services"))
  62.   .dependsOn(databaseDependency, frameworkDependency, rules)
  63.   .aggregate(framework, rules)
  64.  
  65. lazy val rules = project.in(file("components/rules"))
  66.   .dependsOn(databaseDependency, enginePlugins, dependencyBuilder, frameworkDependency)
  67.   .aggregate(database, enginePlugins, dependencyBuilder, framework)
  68.  
  69. lazy val database = project.in(file("components/database"))
  70.   .dependsOn(frameworkDependency)
  71.   .aggregate(framework)
  72.  
  73. lazy val framework = project.in(file("components/framework"))
  74.  
  75. lazy val webServices =
  76.   project.in(file("components/webServices")).enablePlugins(PlayScala)
  77.     .dependsOn(services)
  78.     .aggregate(services)
  79.  
  80. lazy val databaseDependency = database % "compile->compile;test->test"
  81. lazy val databaseTestDependency = database % "test->test"
  82. lazy val frameworkDependency = framework % "compile->compile;test->test"
clone this paste RAW Paste Data