-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
47 lines (42 loc) · 1.02 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
ROOT PROJECT
*/
lazy val root = (project in file("."))
.configs(Config.all: _*)
.settings(run := (run in application in Compile).evaluated)
.settings(name := "root-user-management", Settings.root)
.aggregate(
application,
core,
db,
http,
service
)
/*
APPLICATION MODULE
*/
lazy val application = project
.enablePlugins(BuildInfoPlugin)
.enablePlugins(JavaAppPackaging)
.enablePlugins(DockerPlugin)
.configs(Config.all: _*)
.settings(name := "user-management", Settings.application)
.dependsOn(core, db, service, http)
/*
MODULES
*/
lazy val http = project
.configs(Config.all: _*)
.settings(name := "http", Settings.http)
.dependsOn(core, service)
lazy val service = project
.configs(Config.all: _*)
.settings(name := "service", Settings.service)
.dependsOn(core, db)
lazy val db = project
.configs(Config.all: _*)
.settings(name := "db", Settings.db)
.dependsOn(core)
lazy val core = project
.configs(Config.all: _*)
.settings(name := "core", Settings.core)