-
Notifications
You must be signed in to change notification settings - Fork 46
/
build.sbt
106 lines (94 loc) · 2.9 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
96
97
98
99
100
101
102
103
104
105
106
import Dependencies._
ThisBuild / parallelExecution := false
ThisBuild / versionScheme := Some("semver-spec")
lazy val compileSettings = Seq(
Compile / compile := (Compile / compile)
.dependsOn(
Compile / scalafmtSbt,
Compile / scalafmtAll
)
.value,
libraryDependencies ++= Common.testDeps,
javaOptions ++= Seq("-Xms512m", "-Xmx2048m"),
scalacOptions -= "-Xfatal-warnings"
)
lazy val coverageSettings = Seq(
coverageMinimumStmtTotal := 80,
coverageFailOnMinimum := true
)
lazy val publishSettings = Seq(
homepage := Some(url("https://github.com/embeddedkafka/embedded-kafka")),
licenses += ("MIT", url("https://opensource.org/licenses/MIT")),
Test / publishArtifact := false,
developers := List(
Developer(
"manub",
"Emanuele Blanco",
"emanuele.blanco@gmail.com",
url("https://twitter.com/manub")
),
Developer(
"francescopellegrini",
"Francesco Pellegrini",
"francesco.pelle@gmail.com",
url("https://github.com/francescopellegrini")
),
Developer(
"NeQuissimus",
"Tim Steinbach",
"steinbach.tim@gmail.com",
url("https://github.com/NeQuissimus")
)
)
)
import ReleaseTransformations._
lazy val releaseSettings = Seq(
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion,
pushChanges
),
releaseVersionBump := sbtrelease.Version.Bump.Minor,
releaseCrossBuild := true
)
lazy val testSettings = Seq(
Test / fork := true,
Test / logBuffered := false,
Test / parallelExecution := false
)
lazy val commonSettings = Seq(
organization := "io.github.embeddedkafka",
scalaVersion := Versions.Scala213,
crossScalaVersions := Seq(
Versions.Scala212,
Versions.Scala213,
Versions.Scala3
)
) ++ compileSettings ++ coverageSettings ++ publishSettings ++ releaseSettings ++ testSettings
lazy val root = (project in file("."))
.settings(name := "embedded-kafka-root")
.settings(commonSettings: _*)
.settings(publishArtifact := false)
.settings(publish / skip := true)
.aggregate(embeddedKafka, kafkaStreams, kafkaConnect)
lazy val embeddedKafka = (project in file("embedded-kafka"))
.settings(name := "embedded-kafka")
.settings(commonSettings: _*)
.settings(libraryDependencies ++= EmbeddedKafka.prodDeps)
lazy val kafkaStreams = (project in file("kafka-streams"))
.settings(name := "embedded-kafka-streams")
.settings(commonSettings: _*)
.settings(libraryDependencies ++= KafkaStreams.prodDeps)
.dependsOn(embeddedKafka)
lazy val kafkaConnect = (project in file("kafka-connect"))
.settings(name := "embedded-kafka-connect")
.settings(commonSettings: _*)
.settings(libraryDependencies ++= KafkaConnect.prodDeps)
.dependsOn(embeddedKafka % "compile->compile;test->test")