-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
95 lines (75 loc) · 2.02 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
85
86
87
88
89
90
91
92
93
94
95
import Dependencies._
import scalariform.formatter.preferences._
lazy val buildSettings = Seq(
organization := "no.sysco.middleware.kafka.steward",
scalaVersion := "2.12.7",
)
lazy val root = (project in file("."))
.aggregate(api, collector)
.settings(
name := "kafka-steward",
buildSettings
)
.enablePlugins(JavaAppPackaging)
.enablePlugins(DockerPlugin)
lazy val api = (project in file("api"))
.settings(
name := "kafka-steward-api",
buildSettings,
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value
)
)
lazy val collector = (project in file("collector"))
.dependsOn(api)
.settings(
name := "kafka-steward-collector",
buildSettings,
libraryDependencies ++= Seq(
akkaStreams,
alpakkaKafka,
kafkaClients,
akkaHttp,
akkaHttpSpray,
akkaSlf4j,
logback,
opencensus,
opencensusExporterPrometheus,
prometheusClientHttpServer,
scalaTest,
akkaTestKit,
scalaTestEmbeddedKafka
)
)
lazy val metadata = (project in file("metadata"))
.dependsOn(api)
.settings(
name := "kafka-steward-metadata",
buildSettings,
libraryDependencies ++= Seq(
akkaStreams,
alpakkaKafka,
kafkaClients,
akkaHttp,
akkaHttpSpray,
akkaSlf4j,
logback,
opencensus,
opencensusExporterPrometheus,
prometheusClientHttpServer,
scalaTest,
akkaTestKit,
scalaTestEmbeddedKafka
)
)
//mainClass in Compile := Some("no.sysco.middleware.kafka.event.collector.Collector")
parallelExecution in Test := false
//dockerRepository := Some("syscomiddleware")
//dockerUpdateLatest := true
//dockerBaseImage := "openjdk:8-jre-slim"
scalariformPreferences := scalariformPreferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentConstructorArguments, true)
.setPreference(DanglingCloseParenthesis, Preserve)
// Add the default sonatype repository setting
publishTo := sonatypePublishTo.value