-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
executable file
·62 lines (58 loc) · 1.71 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
lazy val lightql = project
.in(file("."))
.settings(
skip in publish := true
)
.aggregate(dsl, `elastic-http`, `elastic6-http`)
lazy val dsl = project
.in(file("lightql-dsl"))
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "lightql-dsl",
version := Version.Dsl,
libraryDependencies ++= Seq(
Library.fastParse,
Library.nscalaTime,
Library.scalaTest % Test
),
initialCommands := "import com.tecsisa.lightql.parser._"
)
lazy val httpDefaultSettings = Seq(
name := "lightql-elastic-http",
libraryDependencies ++= Seq(
Library.testContainers % "it",
Library.testContainersElastic % "it",
Library.log4jApi % "it",
Library.log4jCore % "it",
Library.log4jSlfj4Impl % "it"
),
fork in IntegrationTest := true
) ++ Defaults.itSettings
lazy val `elastic-http` = project
.in(file("lightql-elastic-http"))
.enablePlugins(AutomateHeaderPlugin)
.configs(IntegrationTest)
.settings(httpDefaultSettings: _*)
.settings(
version := Version.ElasticMaterializer,
libraryDependencies ++= Seq(
Library.elastic4sClient,
Library.elastic4sTestkit % "it"
),
envVars in IntegrationTest := Map("ELASTIC_DOCKER_TAG" -> "7.11.0")
)
.dependsOn(dsl)
lazy val `elastic6-http` = project
.in(file("lightql-elastic6-http"))
.enablePlugins(AutomateHeaderPlugin)
.configs(IntegrationTest)
.settings(httpDefaultSettings: _*)
.settings(
version := Version.Elastic6Materializer,
libraryDependencies ++= Seq(
Library.elastic4s6Client,
Library.elastic4s6Testkit % "it",
),
envVars in IntegrationTest := Map("ELASTIC_DOCKER_TAG" -> "6.7.2")
)
.dependsOn(dsl)