forked from Philippus/elastic4s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
92 lines (83 loc) · 4.14 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
lazy val root = Project("elastic4s", file("."))
.settings(publish := {})
.settings(publishArtifact := false)
.settings(name := "elastic4s")
.aggregate(
core,
embedded,
testkit,
coreTests,
circe,
jackson,
json4s,
// playjson,
streams
)
lazy val core = Project("elastic4s-core", file("elastic4s-core"))
.settings(name := "elastic4s-core")
lazy val embedded = Project("elastic4s-embedded", file("elastic4s-embedded"))
.settings(
name := "elastic4s-embedded",
libraryDependencies ++= Seq(
"org.elasticsearch" % "elasticsearch" % ElasticsearchVersion,
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-smile" % JacksonVersion,
"com.fasterxml.jackson.dataformat" % "jackson-dataformat-cbor" % JacksonVersion,
"org.apache.logging.log4j" % "log4j-api" % Log4jVersion,
"org.apache.logging.log4j" % "log4j-core" % Log4jVersion,
"org.apache.logging.log4j" % "log4j-1.2-api" % Log4jVersion
)
)
.dependsOn(core)
lazy val testkit = Project("elastic4s-testkit", file("elastic4s-testkit"))
.settings(
name := "elastic4s-testkit",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % ScalatestVersion
)
)
.dependsOn(core, embedded)
lazy val coreTests = Project("elastic4s-core-tests", file("elastic4s-core-tests"))
.settings(
name := "elastic4s-core-tests",
libraryDependencies ++= Seq(
"commons-io" % "commons-io" % CommonsIoVersion % "test",
"org.mockito" % "mockito-all" % 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")
)
)
.dependsOn(core, testkit % "test")
lazy val streams = Project("elastic4s-streams", file("elastic4s-streams"))
.settings(
name := "elastic4s-streams",
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % AkkaVersion,
libraryDependencies += "org.reactivestreams" % "reactive-streams" % ReactiveStreamsVersion,
libraryDependencies += "org.reactivestreams" % "reactive-streams-tck" % ReactiveStreamsVersion % "test"
).dependsOn(core, testkit % "test", jackson % "test")
lazy val jackson = Project("elastic4s-jackson", file("elastic4s-jackson"))
.settings(
name := "elastic4s-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, testkit % "test")
lazy val circe = Project("elastic4s-circe", file("elastic4s-circe"))
.settings(
name := "elastic4s-circe",
libraryDependencies += "io.circe" %% "circe-core" % CirceVersion,
libraryDependencies += "io.circe" %% "circe-generic" % CirceVersion,
libraryDependencies += "io.circe" %% "circe-parser" % CirceVersion
).dependsOn(core, testkit % "test")
lazy val json4s = Project("elastic4s-json4s", file("elastic4s-json4s"))
.settings(
name := "elastic4s-json4s",
libraryDependencies += "org.json4s" %% "json4s-core" % Json4sVersion,
libraryDependencies += "org.json4s" %% "json4s-jackson" % Json4sVersion
).dependsOn(core, testkit % "test")
//lazy val playjson = Project("elastic4s-play-json", file("elastic4s-play-json"))
// .settings(
// name := "elastic4s-play-json",
// libraryDependencies += "com.typesafe.play" %% "play-json" % PlayJsonVersion
// ).dependsOn(core, testkit % "test")