-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
32 lines (21 loc) · 805 Bytes
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name := "hello-play"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
jdbc,
anorm,
cache
)
play.Project.playScalaSettings
scalariformSettings
org.scalastyle.sbt.ScalastylePlugin.Settings
com.jamesward.play.BrowserNotifierPlugin.livereload
def playProject(name: String) = play.Project(name = name, path = file("modules/" + name)).
settings(scalariformSettings :_*).
settings(org.scalastyle.sbt.ScalastylePlugin.Settings :_*)
lazy val core = playProject("core")
lazy val module1 = playProject("module1").dependsOn(core)
lazy val module2 = playProject("module2").dependsOn(core)
lazy val root = playProject("hello-play").in(file(".")).
dependsOn(module1, module2).
aggregate(module1, module2).
settings(scalariformSettings :_*)