Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. object ApplicationBuild extends Build {
  2.  
  3.   val appName         = "app"
  4.   val appVersion      = "1.0-SNAPSHOT"
  5.  
  6.   val appDeps = Seq(
  7.      javaCore,
  8.      "groupId" % "app-core" % "0.1-SNAPSHOT"
  9.   )
  10.  
  11.   val mainDeps = Seq(
  12.      javaCore
  13.   )
  14.  
  15.   // set all custom resolvers
  16.   val myResolvers = Seq(
  17.     "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository"
  18.   )
  19.  
  20.   val common = play.Project(appName+"-common", appVersion,
  21.       appDeps, path = file("modules/common")).settings(
  22.         resolvers ++= myResolvers
  23.       )
  24.   val admin = play.Project(appName+"-admin", appVersion,
  25.       appDeps, path = file("modules/admin")).dependsOn(common).settings(
  26.         resolvers ++= myResolvers
  27.       )
  28.   val mobile = play.Project(appName+"-mobile", appVersion,
  29.       appDeps, path = file("modules/mobile")).dependsOn(common).settings(
  30.         resolvers ++= myResolvers
  31.       )
  32.  
  33.   val main = play.Project(appName, appVersion, mainDeps).settings(
  34.     resolvers ++= myResolvers,
  35.     lessEntryPoints <<= baseDirectory(_ / "app" / "assets" / "css" ** "custom.less")
  36.   ).dependsOn(admin, mobile).aggregate(admin, mobile)
  37. }