forked from manub/scalatest-embedded-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
83 lines (73 loc) · 2.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import sbtrelease.Version
parallelExecution in ThisBuild := false
val kafkaVersion = "0.10.2.0"
val akkaVersion = "2.4.17"
val slf4jLog4jOrg = "org.slf4j"
val slf4jLog4jArtifact = "slf4j-log4j12"
lazy val commonSettings = Seq(
organization := "net.manub",
scalaVersion := "2.12.1",
crossScalaVersions := Seq("2.12.1", "2.11.8"),
homepage := Some(url("https://github.com/manub/scalatest-embedded-kafka")),
parallelExecution in Test := false,
logBuffered in Test := false,
fork in Test := true,
javaOptions += "-Xmx1G"
)
lazy val commonLibrarySettings = libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.1",
"org.apache.kafka" %% "kafka" % kafkaVersion exclude (slf4jLog4jOrg, slf4jLog4jArtifact),
"org.apache.zookeeper" % "zookeeper" % "3.4.8" exclude (slf4jLog4jOrg, slf4jLog4jArtifact),
"org.apache.avro" % "avro" % "1.8.1" exclude (slf4jLog4jOrg, slf4jLog4jArtifact),
"com.typesafe.akka" %% "akka-actor" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test
)
lazy val publishSettings = Seq(
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ =>
false
},
pomExtra :=
<scm>
<url>https://github.com/manub/scalatest-embedded-kafka</url>
<connection>scm:git:git@github.com:manub/scalatest-embedded-kafka.git</connection>
</scm>
<developers>
<developer>
<id>manub</id>
<name>Emanuele Blanco</name>
<url>http://twitter.com/manub</url>
</developer>
</developers>
)
lazy val releaseSettings = Seq(
releaseVersionBump := Version.Bump.Minor,
releaseCrossBuild := true
)
lazy val root = (project in file("."))
.settings(name := "scalatest-embedded-kafka-root")
.settings(commonSettings: _*)
.settings(publishArtifact := false)
.settings(publish := {})
.settings(releaseSettings: _*)
.disablePlugins(BintrayPlugin)
.settings(publishTo := Some(Resolver.defaultLocal))
.aggregate(embeddedKafka, kafkaStreams)
lazy val embeddedKafka = (project in file("embedded-kafka"))
.settings(name := "scalatest-embedded-kafka")
.settings(publishSettings: _*)
.settings(commonSettings: _*)
.settings(commonLibrarySettings)
.settings(releaseSettings: _*)
lazy val kafkaStreams = (project in file("kafka-streams"))
.settings(name := "scalatest-embedded-kafka-streams")
.settings(publishSettings: _*)
.settings(commonSettings: _*)
.settings(commonLibrarySettings)
.settings(releaseSettings: _*)
.settings(libraryDependencies ++= Seq(
"org.apache.kafka" % "kafka-streams" % kafkaVersion exclude (slf4jLog4jOrg, slf4jLog4jArtifact)
))
.dependsOn(embeddedKafka)