forked from conduktor/kafka-security-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
76 lines (54 loc) · 2.26 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
name := "kafka-security-manager"
organization := "com.github.simplesteph.ksm"
version := "0.8"
scalaVersion := "2.12.8"
lazy val root = (project in file("."))
.enablePlugins(JavaAppPackaging)
.enablePlugins(DockerPlugin)
resolvers ++= Seq(
"Artima Maven Repository" at "http://repo.artima.com/releases",
Resolver.bintrayRepo("beyondthelines", "maven")
)
libraryDependencies ++= Seq(
// kafka
"org.apache.kafka" %% "kafka" % "2.1.1",
"io.github.embeddedkafka" %% "embedded-kafka" % "2.1.1" % "test",
"org.apache.kafka" % "kafka-clients" % "2.1.1", // needed explicitly for proper classPath
"org.apache.kafka" % "kafka-clients" % "2.1.1" % Test classifier "test",
// test
"org.scalatest" %% "scalatest" % "3.0.5" % 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",
// APIs
"org.skinny-framework" %% "skinny-http-client" % "2.3.7",
"com.fasterxml.jackson.core" % "jackson-core" % "2.9.4",
// GRPC
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf",
"io.grpc" % "grpc-netty" % scalapb.compiler.Version.grpcJavaVersion,
"com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapb.compiler.Version.scalapbVersion,
"io.grpc" % "grpc-services" % scalapb.compiler.Version.grpcJavaVersion,
// REST gateway generation
"beyondthelines" %% "grpcgatewayruntime" % "0.0.9" % "compile,protobuf",
// AWS SDK to access S3
"com.amazonaws" % "aws-java-sdk-s3" % "1.11.385"
)
mainClass in Compile := Some("com.github.simplesteph.ksm.KafkaSecurityManager")
parallelExecution in Test := false
// Docker stuff
dockerRepository := Some("simplesteph")
dockerUpdateLatest := true
dockerBaseImage := "openjdk:8-jre-slim"
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value,
// generate Swagger spec files into the `resources/specs`
grpcgateway.generators.SwaggerGenerator -> (resourceDirectory in Compile).value / "specs",
// generate the Rest Gateway source code
grpcgateway.generators.GatewayGenerator -> (sourceManaged in Compile).value
)
// Add the default sonatype repository setting
publishTo := sonatypePublishTo.value