1
1
import Dependencies .globalExcludeDeps
2
2
import Dependencies .gson
3
+ import Dependencies .bouncyCastle
4
+
3
5
import Settings .*
4
6
import sbt .Keys .libraryDependencies
5
7
import sbt .*
@@ -18,8 +20,9 @@ lazy val subProjects: Seq[Project] = Seq(
18
20
`azure-documentdb`,
19
21
`azure-datalake`,
20
22
cassandra,
21
- elastic6,
22
- elastic7,
23
+ `elastic-common`,
24
+ opensearch,
25
+ elastic8,
23
26
ftp,
24
27
`gcp-storage`,
25
28
http,
@@ -219,18 +222,17 @@ lazy val cassandra = (project in file("kafka-connect-cassandra"))
219
222
.configureFunctionalTests()
220
223
.enablePlugins(PackPlugin )
221
224
222
- lazy val elastic6 = (project in file(" kafka-connect-elastic6 " ))
225
+ lazy val `elastic-common` = (project in file(" kafka-connect-elastic-common " ))
223
226
.dependsOn(common)
224
227
.dependsOn(`sql-common`)
225
228
.dependsOn(`test-common` % " fun->compile" )
226
229
.settings(
227
230
settings ++
228
231
Seq (
229
- name := " kafka-connect-elastic6 " ,
232
+ name := " kafka-connect-elastic-common " ,
230
233
description := " Kafka Connect compatible connectors to move data between Kafka and popular data stores" ,
231
- libraryDependencies ++= baseDeps ++ kafkaConnectElastic6Deps ,
234
+ libraryDependencies ++= baseDeps ++ kafkaConnectElasticBaseDeps ,
232
235
publish / skip := true ,
233
- FunctionalTest / baseDirectory := (LocalRootProject / baseDirectory).value,
234
236
packExcludeJars := Seq (
235
237
" scala-.*\\ .jar" ,
236
238
" zookeeper-.*\\ .jar" ,
@@ -239,20 +241,20 @@ lazy val elastic6 = (project in file("kafka-connect-elastic6"))
239
241
)
240
242
.configureAssembly(true )
241
243
.configureTests(baseTestDeps)
242
- .configureIntegrationTests(kafkaConnectElastic6TestDeps )
244
+ .configureIntegrationTests(kafkaConnectElastic8TestDeps )
243
245
.configureFunctionalTests()
244
- .enablePlugins (PackPlugin )
246
+ .disablePlugins (PackPlugin )
245
247
246
- lazy val elastic7 = (project in file(" kafka-connect-elastic7 " ))
248
+ lazy val elastic8 = (project in file(" kafka-connect-elastic8 " ))
247
249
.dependsOn(common)
248
- .dependsOn(`sql -common`)
249
- .dependsOn(`test-common` % " fun->compile" )
250
+ .dependsOn(`elastic -common`)
251
+ .dependsOn(`test-common` % " fun->compile;it->compile " )
250
252
.settings(
251
253
settings ++
252
254
Seq (
253
- name := " kafka-connect-elastic7 " ,
255
+ name := " kafka-connect-elastic8 " ,
254
256
description := " Kafka Connect compatible connectors to move data between Kafka and popular data stores" ,
255
- libraryDependencies ++= baseDeps ++ kafkaConnectElastic7Deps ,
257
+ libraryDependencies ++= baseDeps ++ kafkaConnectElastic8Deps ,
256
258
publish / skip := true ,
257
259
packExcludeJars := Seq (
258
260
" scala-.*\\ .jar" ,
@@ -262,10 +264,33 @@ lazy val elastic7 = (project in file("kafka-connect-elastic7"))
262
264
)
263
265
.configureAssembly(true )
264
266
.configureTests(baseTestDeps)
265
- .configureIntegrationTests(kafkaConnectElastic7TestDeps )
267
+ .configureIntegrationTests(kafkaConnectElastic8TestDeps )
266
268
.configureFunctionalTests()
267
269
.enablePlugins(PackPlugin )
268
270
271
+ lazy val opensearch = (project in file(" kafka-connect-opensearch" ))
272
+ .dependsOn(common)
273
+ .dependsOn(`elastic-common`)
274
+ .dependsOn(`test-common` % " fun->compile;it->compile" )
275
+ .settings(
276
+ settings ++
277
+ Seq (
278
+ name := " kafka-connect-opensearch" ,
279
+ description := " Kafka Connect compatible connectors to move data between Kafka and popular data stores" ,
280
+ libraryDependencies ++= baseDeps ++ kafkaConnectOpenSearchDeps,
281
+ publish / skip := true ,
282
+ packExcludeJars := Seq (
283
+ " scala-.*\\ .jar" ,
284
+ " zookeeper-.*\\ .jar" ,
285
+ ),
286
+ ),
287
+ )
288
+ .configureAssembly(false )
289
+ .configureTests(baseTestDeps)
290
+ // .configureIntegrationTests(kafkaConnectOpenSearchTestDeps)
291
+ .configureFunctionalTests(bouncyCastle)
292
+ .enablePlugins(PackPlugin )
293
+
269
294
lazy val http = (project in file(" kafka-connect-http" ))
270
295
.dependsOn(common)
271
296
// .dependsOn(`test-common` % "fun->compile")
0 commit comments