forked from conduktor/kafka-security-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
84 lines (60 loc) · 2.15 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
inThisBuild(List(
organization := "io.conduktor",
homepage := Some(url("https://github.com/conduktor/kafka-security-manager")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"conduktor",
"Stephane Maarek",
url("https://github.com/conduktor")
)
)
))
name := "kafka-security-manager"
version := "1.0.0-SNAPSHOT"
scalaVersion := "2.12.8"
lazy val root = (project in file("."))
.enablePlugins(JavaAppPackaging)
.enablePlugins(DockerPlugin)
.enablePlugins(ClasspathJarPlugin)
resolvers ++= Seq(
"Artima Maven Repository" at "https://repo.artima.com/releases",
Resolver.bintrayRepo("beyondthelines", "maven")
)
libraryDependencies ++= Seq(
// kafka
"org.apache.kafka" %% "kafka" % "2.5.0",
"io.github.embeddedkafka" %% "embedded-kafka" % "2.5.0" % "test",
"io.findify" %% "s3mock" % "0.2.6" % "test",
"org.apache.kafka" % "kafka-clients" % "2.5.0", // needed explicitly for proper classPath
"org.apache.kafka" % "kafka-clients" % "2.5.0" % Test classifier "test",
// test
"org.scalatest" %% "scalatest" % "3.0.5" % Test,
"org.scalamock" %% "scalamock" % "5.1.0" % Test,
// logging
"org.slf4j" % "slf4j-api" % "1.7.25",
"org.slf4j" % "slf4j-log4j12" % "1.7.25",
// config
"com.typesafe" % "config" % "1.3.3",
// parsers
"com.github.tototoshi" %% "scala-csv" % "1.3.5",
"io.circe" %% "circe-yaml" % "0.12.0",
"io.circe" %% "circe-generic" % "0.12.0",
// APIs
"org.skinny-framework" %% "skinny-http-client" % "2.3.7",
"com.fasterxml.jackson.core" % "jackson-core" % "2.9.4",
// AWS SDK to access S3
"com.amazonaws" % "aws-java-sdk-s3" % "1.11.385"
)
mainClass in Compile := Some("io.conduktor.ksm.KafkaSecurityManager")
parallelExecution in Test := false
// Docker stuff
dockerRepository := Some("conduktor")
dockerUpdateLatest := true
dockerBaseImage := "openjdk:8-jre-slim"
assemblyMergeStrategy in assembly := {
case PathList("META-INF", _ @ _*) => MergeStrategy.discard
case _ => MergeStrategy.first
}
assemblyJarName in assembly := s"${name.value}-${version.value}.jar"