-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
75 lines (65 loc) · 1.89 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import java.io.File
import java.util.UUID
import com.amazonaws.auth.STSAssumeRoleSessionCredentialsProvider
def setupProject(
project: Project,
folder: String,
localDependencies: Seq[Project] = Seq(),
externalDependencies: Seq[ModuleID] = Seq()
): Project = {
val dependsOn = localDependencies
.map { project: Project =>
ClasspathDependency(
project = project,
configuration = Some("compile->compile;test->test")
)
}
project
.in(new File(folder))
.settings(Common.settings: _*)
.enablePlugins(DockerComposePlugin)
.enablePlugins(JavaAppPackaging)
.dependsOn(dependsOn: _*)
.settings(libraryDependencies ++= externalDependencies)
}
lazy val display = setupProject(
project,
"common/display",
externalDependencies = CatalogueDependencies.displayModelDependencies
)
lazy val search_common = setupProject(
project,
"common/search",
localDependencies = Seq(display),
externalDependencies = CatalogueDependencies.searchCommonDependencies
)
lazy val stacks = setupProject(
project,
"common/stacks",
localDependencies = Seq(display),
externalDependencies = CatalogueDependencies.stacksDependencies
)
lazy val search = setupProject(
project,
"search",
localDependencies = Seq(display, search_common),
externalDependencies = CatalogueDependencies.searchDependencies
)
lazy val items = setupProject(
project,
"items",
localDependencies = Seq(stacks, search_common),
externalDependencies = CatalogueDependencies.itemsDependencies
)
lazy val requests = setupProject(
project,
"requests",
localDependencies = Seq(stacks, search_common),
externalDependencies = CatalogueDependencies.requestsDependencies
)
lazy val snapshot_generator = setupProject(
project,
"snapshots/snapshot_generator",
localDependencies = Seq(display, search_common),
externalDependencies = CatalogueDependencies.snapshotGeneratorDependencies
)