-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
71 lines (63 loc) · 1.97 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
inThisBuild(List(
organization := "com.github.scoquelin",
homepage := Some(url("https://github.com/scoquelin/arugula")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"scoquelin",
"Sébastien Coquelin",
url("https://www.github.com/scoquelin")
),
Developer(
"72squared",
"John Loehrer",
url("https://www.github.com/72squared")
)
)
))
ThisBuild / scalaVersion := "2.13.14"
ThisBuild / crossScalaVersions := Seq("2.13.14", "3.3.3")
lazy val root = (project in file("."))
.settings(
name := "arugula"
)
.aggregate(api, core)
lazy val api = (project in file ("modules/api"))
.settings(
name := "arugula-api"
)
lazy val core = (project in file ("modules/core"))
.settings(
name := "arugula-core",
libraryDependencies ++= Seq(
"io.lettuce" % "lettuce-core" % "6.3.+",
)
)
.dependsOn(api)
lazy val unitTests = (project in file ("modules/tests/test"))
.settings(
name := "arugula-unit-tests",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"org.mockito" % "mockito-core" % "5.12.0" % Test,
"org.scalatestplus" %% "mockito-5-12" % "3.2.19.0" % Test,
"ch.qos.logback" % "logback-classic" % "1.5.6" % Test,
)
)
.dependsOn(api, core)
lazy val integrationTests = (project in file ("modules/tests/it"))
.settings(
name := "arugula-integration-tests",
fork := true,
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"com.dimafeng" %% "testcontainers-scala" % "0.41.4" % Test,
"com.dimafeng" %% "testcontainers-scala-scalatest" % "0.41.4" % Test,
"ch.qos.logback" % "logback-classic" % "1.5.6" % Test,
)
)
.dependsOn(api, core)
addCommandAlias("test", ";unitTests/test")
addCommandAlias("testAll", ";unitTests/test;integrationTests/test")