forked from Philippus/elastic4s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
206 lines (187 loc) · 7.75 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
lazy val root = Project("elastic4s", file("."))
.settings(
publish := {},
publishArtifact := false,
name := "elastic4s"
)
.aggregate(
core,
clientesjava,
clientsSniffed,
cats_effect,
scalaz,
zio,
monix,
tests,
testkit,
circe,
jackson,
json4s,
playjson,
sprayjson,
clientsttp,
clientakka,
httpstreams,
akkastreams
)
lazy val core = Project("elastic4s-core", file("elastic4s-core"))
.settings(
name := "elastic4s-core",
libraryDependencies ++= Seq(
"joda-time" % "joda-time" % "2.10.5",
"com.fasterxml.jackson.core" % "jackson-core" % JacksonVersion,
"com.fasterxml.jackson.core" % "jackson-databind" % JacksonVersion,
"com.fasterxml.jackson.module" %% "jackson-module-scala" % JacksonVersion
)
)
lazy val clientesjava = Project("elastic4s-client-esjava", file("elastic4s-client-esjava"))
.settings(
name := "elastic4s-client-esjava",
libraryDependencies ++= Seq(
"org.elasticsearch.client" % "elasticsearch-rest-client" % ElasticsearchVersion,
"org.apache.logging.log4j" % "log4j-api" % Log4jVersion % "test",
"com.fasterxml.jackson.core" % "jackson-core" % JacksonVersion,
"com.fasterxml.jackson.core" % "jackson-databind" % JacksonVersion,
"com.fasterxml.jackson.module" %% "jackson-module-scala" % JacksonVersion exclude ("org.scala-lang", "scala-library")
)
)
.dependsOn(core)
lazy val clientsSniffed = Project("elastic4s-client-sniffed", file("elastic4s-client-sniffed"))
.settings(
name := "elastic4s-client-sniffed",
libraryDependencies ++= Seq(
"org.elasticsearch.client" % "elasticsearch-rest-client-sniffer" % ElasticsearchVersion,
)
)
.dependsOn(clientesjava)
lazy val cats_effect = Project("elastic4s-effect-cats", file("elastic4s-effect-cats"))
.settings(name := "elastic4s-effect-cats")
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % CatsEffectVersion
)
)
.dependsOn(core)
lazy val scalaz = Project("elastic4s-effect-scalaz", file("elastic4s-effect-scalaz"))
.settings(name := "elastic4s-effect-scalaz")
.settings(
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % ScalazVersion,
"org.scalaz" %% "scalaz-concurrent" % ScalazVersion
)
)
.dependsOn(core)
lazy val zio = Project("elastic4s-effect-zio", file("elastic4s-effect-zio"))
.settings(name := "elastic4s-effect-zio")
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % ZIOVersion
)
)
.dependsOn(core, testkit % "test")
lazy val monix = Project("elastic4s-effect-monix", file("elastic4s-effect-monix"))
.settings(name := "elastic4s-effect-monix")
.settings(
libraryDependencies ++= Seq(
"io.monix" %% "monix" % MonixVersion
)
)
.dependsOn(core)
lazy val testkit = Project("elastic4s-testkit", file("elastic4s-testkit"))
.settings(
name := "elastic4s-testkit",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % ScalatestVersion,
"org.scalatestplus" %% "mockito-1-10" % ScalatestPlusVersion
)
)
.dependsOn(core, clientesjava)
lazy val httpstreams = Project("elastic4s-http-streams", file("elastic4s-http-streams"))
.settings(
name := "elastic4s-http-streams",
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % AkkaVersion,
libraryDependencies += "org.reactivestreams" % "reactive-streams" % ReactiveStreamsVersion,
libraryDependencies += "org.reactivestreams" % "reactive-streams-tck" % ReactiveStreamsVersion % "test",
libraryDependencies += "org.scalatestplus" %% "testng-6-7" % ScalatestPlusVersion % "test"
)
.dependsOn(core, testkit % "test", jackson % "test")
lazy val akkastreams = Project("elastic4s-streams-akka", file("elastic4s-streams-akka"))
.settings(
name := "elastic4s-streams-akka",
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % AkkaVersion
)
.dependsOn(core, testkit % "test", jackson % "test")
lazy val jackson = Project("elastic4s-json-jackson", file("elastic4s-json-jackson"))
.settings(
name := "elastic4s-json-jackson",
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-core" % JacksonVersion,
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % JacksonVersion,
libraryDependencies += "com.fasterxml.jackson.module" %% "jackson-module-scala" % JacksonVersion exclude ("org.scala-lang", "scala-library"),
libraryDependencies += "com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % JacksonVersion
)
.dependsOn(core)
lazy val circe = Project("elastic4s-json-circe", file("elastic4s-json-circe"))
.settings(
name := "elastic4s-json-circe",
libraryDependencies += "io.circe" %% "circe-core" % CirceVersion,
libraryDependencies += "io.circe" %% "circe-generic" % CirceVersion,
libraryDependencies += "io.circe" %% "circe-parser" % CirceVersion
)
.dependsOn(core)
lazy val json4s = Project("elastic4s-json-json4s", file("elastic4s-json-json4s"))
.settings(
name := "elastic4s-json-json4s",
libraryDependencies += "org.json4s" %% "json4s-core" % Json4sVersion,
libraryDependencies += "org.json4s" %% "json4s-jackson" % Json4sVersion
)
.dependsOn(core)
lazy val playjson = Project("elastic4s-json-play", file("elastic4s-json-play"))
.settings(
name := "elastic4s-json-play",
libraryDependencies += "com.typesafe.play" %% "play-json" % PlayJsonVersion
)
.dependsOn(core)
lazy val sprayjson = Project("elastic4s-json-spray", file("elastic4s-json-spray"))
.settings(
name := "elastic4s-json-spray",
libraryDependencies += "io.spray" %% "spray-json" % SprayJsonVersion
)
.dependsOn(core)
lazy val clientsttp = Project("elastic4s-client-sttp", file("elastic4s-client-sttp"))
.settings(
name := "elastic4s-client-sttp",
libraryDependencies += "com.softwaremill.sttp" %% "core" % SttpVersion,
libraryDependencies += "com.softwaremill.sttp" %% "async-http-client-backend-future" % SttpVersion
)
.dependsOn(core)
lazy val clientakka = Project("elastic4s-client-akka", file("elastic4s-client-akka"))
.settings(
name := "elastic4s-client-akka",
libraryDependencies += "com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % AkkaVersion,
libraryDependencies += "org.scalamock" %% "scalamock" % ScalamockVersion % "test"
)
.dependsOn(core, testkit % "test")
lazy val tests = Project("elastic4s-tests", file("elastic4s-tests"))
.settings(
name := "elastic4s-tests",
libraryDependencies ++= Seq(
"commons-io" % "commons-io" % CommonsIoVersion % "test",
"org.mockito" % "mockito-core" % MockitoVersion % "test",
"com.fasterxml.jackson.core" % "jackson-core" % JacksonVersion % "test",
"com.fasterxml.jackson.core" % "jackson-databind" % JacksonVersion % "test",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % JacksonVersion % "test" exclude ("org.scala-lang", "scala-library"),
"org.apache.logging.log4j" % "log4j-api" % Log4jVersion % "test",
"org.apache.logging.log4j" % "log4j-slf4j-impl" % Log4jVersion % "test",
"org.apache.logging.log4j" % "log4j-core" % Log4jVersion % "test"
),
fork in Test := false,
parallelExecution in Test := false,
testForkedParallel in Test := false
)
.dependsOn(clientesjava, jackson, circe, testkit % "test")
lazy val noPublishSettings = Seq(
publish := {},
publishLocal := {},
publishArtifact := false
)