object ApplicationBuild extends Build {
val appName = "app"
val appVersion = "1.0-SNAPSHOT"
val appDeps = Seq(
javaCore,
"groupId" % "app-core" % "0.1-SNAPSHOT"
)
val mainDeps = Seq(
javaCore
)
// set all custom resolvers
val myResolvers = Seq(
"Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository"
)
val common = play.Project(appName+"-common", appVersion,
appDeps, path = file("modules/common")).settings(
resolvers ++= myResolvers
)
val admin = play.Project(appName+"-admin", appVersion,
appDeps, path = file("modules/admin")).dependsOn(common).settings(
resolvers ++= myResolvers
)
val mobile = play.Project(appName+"-mobile", appVersion,
appDeps, path = file("modules/mobile")).dependsOn(common).settings(
resolvers ++= myResolvers
)
val main = play.Project(appName, appVersion, mainDeps).settings(
resolvers ++= myResolvers,
lessEntryPoints <<= baseDirectory(_ / "app" / "assets" / "css" ** "custom.less")
).dependsOn(admin, mobile).aggregate(admin, mobile)
}