-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
87 lines (81 loc) · 2.15 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
76
77
78
79
80
81
82
83
84
85
86
87
val scala3Version = "3.3.0"
enablePlugins(FlywayPlugin)
lazy val commonSettings = Seq(
scalaVersion := scala3Version,
version := "0.0.1-SNAPSHOT",
organization := "io.github.rpiotrow",
scalacOptions := Seq("-unchecked", "-deprecation"),
run / fork := true,
run / javaOptions += "-Xmx8G",
publish / skip := true
)
lazy val loadTestingGraphqlApi =
project
.in(file("."))
.settings(commonSettings*)
.settings(
flywayUrl := "jdbc:postgresql://localhost:5432/companies",
flywayUser := "postgres",
flywayPassword := "postgres",
flywayLocations := Seq(s"filesystem:${baseDirectory.value}/db.migration"),
libraryDependencies ++= Seq(
Dependency.postgreSQL
)
)
.aggregate(
server,
`load-tests`,
`test-data`
)
lazy val server =
project
.in(file("server"))
.settings(commonSettings*)
.settings(
name := "server",
libraryDependencies ++= Seq(
Dependency.doobieCore,
Dependency.doobieHikari,
Dependency.doobiePostgres,
Dependency.grackleCore,
Dependency.grackleDoobie,
Dependency.http4sEmberServer,
Dependency.http4sCirce,
Dependency.http4sDsl,
Dependency.logback,
Dependency.postgreSQL
)
)
lazy val `load-tests` =
project
.in(file("load-tests"))
.enablePlugins(GatlingPlugin)
.settings(commonSettings*)
.settings(
name := "load-tests",
libraryDependencies ++= Seq(
Dependency.gatlingTestFramework % "test",
Dependency.gatlingHighcharts % "test",
Dependency.grackleCore % "test",
Dependency.postgreSQL % "test",
Dependency.scalaCheck % "test",
Dependency.sttp % "test"
)
)
lazy val `test-data` =
project
.in(file("test-data"))
.settings(commonSettings*)
.settings(
name := "test-data",
libraryDependencies ++= Seq(
Dependency.circeGeneric,
Dependency.circeParser,
Dependency.doobieCore,
Dependency.doobieHikari,
Dependency.doobiePostgres,
Dependency.ducktape,
Dependency.postgreSQL,
Dependency.sttp
)
)