forked from sksamuel/avro4s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
74 lines (66 loc) · 1.93 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
// Note: settings common to all subprojects are defined in project/GlobalPlugin.scala
// The root project is implicit, so we don't have to define it.
// We do need to prevent publishing for it, though:
import sbt._
lazy val root = Project("avro4s", file("."))
.settings(
publish := {},
publishArtifact := false,
name := "avro4s"
)
.aggregate(
`avro4s-core`,
`avro4s-json`,
// `avro4s-cats`,
`avro4s-kafka`,
`avro4s-refined`
)
val `avro4s-core` = project.in(file("avro4s-core"))
.settings(
libraryDependencies ++= Seq(
"com.propensive" %% "magnolia" % MagnoliaVersion,
"com.chuusai" %% "shapeless" % ShapelessVersion,
"org.json4s" %% "json4s-native" % Json4sVersion
)
)
val `avro4s-json` = project.in(file("avro4s-json"))
.dependsOn(`avro4s-core`)
.settings(
libraryDependencies ++= Seq(
"org.json4s" %% "json4s-native" % Json4sVersion
)
)
val `avro4s-cats` = project.in(file("avro4s-cats"))
.dependsOn(`avro4s-core`)
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % CatsVersion
)
)
val `avro4s-kafka` = project.in(file("avro4s-kafka"))
.dependsOn(`avro4s-core`)
.settings(
libraryDependencies ++= Seq(
"org.apache.kafka" % "kafka-clients" % "2.4.0"
)
)
val `avro4s-refined` = project.in(file("avro4s-refined"))
.dependsOn(`avro4s-core`)
.settings(
libraryDependencies ++= Seq(
"eu.timepit" %% "refined" % RefinedVersion
)
)
val benchmarks = project
.in(file("benchmarks"))
.dependsOn(`avro4s-core`)
.enablePlugins(JmhPlugin)
.settings(
libraryDependencies ++= Seq(
"pl.project13.scala" % "sbt-jmh-extras" % SbtJmhVersion,
"org.openjdk.jmh" % "jmh-core" % JmhVersion,
"org.openjdk.jmh" % "jmh-generator-asm" % JmhVersion,
"org.openjdk.jmh" % "jmh-generator-bytecode" % JmhVersion,
"org.openjdk.jmh" % "jmh-generator-reflection" % JmhVersion
)
)