This repository has been archived by the owner on Jun 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
42 lines (35 loc) · 1.59 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
import de.heikoseeberger.sbtheader.{AutomateHeaderPlugin, HeaderPlugin}
import de.heikoseeberger.sbtheader.license.Apache2_0
lazy val commonSettings = Seq(
organization := "com.rbmhtechnology",
name := "calliope",
version := "0.1-SNAPSHOT",
scalaVersion := "2.12.1"
)
lazy val testSettings = Defaults.itSettings ++ Seq(
parallelExecution in IntegrationTest := false,
fork in IntegrationTest := true
)
lazy val headerSettings: Seq[Setting[_]] = {
val header = Apache2_0("2015 - 2017", "Red Bull Media House GmbH <http://www.redbullmediahouse.com> - all rights reserved.")
Seq(headers := Map("scala" -> header, "java" -> header)) ++
HeaderPlugin.settingsFor(IntegrationTest) ++
AutomateHeaderPlugin.automateFor(IntegrationTest)
}
lazy val dependencies = Seq(
"com.typesafe.akka" %% "akka-stream" % Version.Akka ,
"com.typesafe.akka" %% "akka-stream-kafka" % "0.13",
"org.apache.kafka" % "kafka-clients" % Version.Kafka,
"org.apache.kafka" % "kafka-streams" % Version.Kafka,
"org.scalatest" %% "scalatest" % "3.0.1" % "it,test",
"com.typesafe.akka" %% "akka-stream-testkit" % Version.Akka % "it,test",
"com.typesafe.akka" %% "akka-testkit" % Version.Akka % "it,test",
"net.manub" %% "scalatest-embedded-kafka" % "0.11.0" % "it"
)
lazy val root = (project in file("."))
.configs(IntegrationTest)
.settings(commonSettings: _*)
.settings(testSettings)
.settings(headerSettings)
.settings(libraryDependencies ++= dependencies)
.enablePlugins(HeaderPlugin, AutomateHeaderPlugin)