-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
68 lines (62 loc) · 1.78 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
import Dependencies._
val commonSettings = Seq(
organization := "it.adami",
scalaVersion := "2.12.6"
)
val buildInfoSettings = Seq(
buildInfoOptions += BuildInfoOption.ToMap
)
lazy val service = (project in file("service"))
.enablePlugins(DockerPlugin, JavaServerAppPackaging, BuildInfoPlugin)
.settings(
name := "user-api",
scalacOptions += "-Ypartial-unification",
libraryDependencies ++=
http4sDependencies ++
loggingDependencies ++
circeDependencies ++
databaseDependencies ++
catsDependencies ++
testDependencies
)
.configs(IntegrationTest)
.settings(
Defaults.itSettings
)
.settings(commonSettings: _*)
.settings(DockerSettings.settings: _*)
.settings(buildInfoSettings: _*)
lazy val `end-to-end` = (project in file("end-to-end"))
.enablePlugins(BuildInfoPlugin)
.dependsOn(service)
.settings(
name := "end-to-end",
scalacOptions += "-Ypartial-unification",
libraryDependencies ++=
http4sDependencies ++
circeDependencies ++
testDependencies ++
loggingDependencies ++
endToEndDependencies
)
.settings(commonSettings: _*)
.settings(buildInfoSettings: _*)
lazy val performance = (project in file("perfomance"))
.enablePlugins(BuildInfoPlugin, GatlingPlugin, DockerComposePlugin)
.settings(
name := "performance",
dockerImageCreationTask := (publishLocal in Docker).value,
libraryDependencies ++=
loggingDependencies ++
performanceDependencies
)
.settings(commonSettings: _*)
.settings(buildInfoSettings: _*)
lazy val `user-api` = (project in file("."))
.aggregate(service)
.settings(commonSettings)
.settings(
run := {
(run in service in Compile).evaluated // Enables "sbt run" on the root project
}
)