-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.sbt
105 lines (94 loc) · 2.99 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
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.confluentDeps ++ Common.testDeps,
resolvers ++= CustomResolvers.resolvers,
javaOptions ++= Seq("-Xms512m", "-Xmx2048m"),
scalacOptions -= "-Xfatal-warnings"
)
lazy val coverageSettings = Seq(
coverageMinimumStmtTotal := 80,
coverageFailOnMinimum := true,
coverageExcludedPackages := "net\\.manub\\.embeddedkafka\\.schemaregistry\\..*;net\\.manub\\.embeddedkafka\\.schemaregistry\\.streams\\..*"
)
lazy val publishSettings = Seq(
homepage := Some(
url("https://github.com/embeddedkafka/embedded-kafka-schema-registry")
),
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-schema-registry-root")
.settings(commonSettings: _*)
.settings(publishArtifact := false)
.settings(publish / skip := true)
.aggregate(embeddedKafkaSchemaRegistry, kafkaStreams)
lazy val embeddedKafkaSchemaRegistry =
(project in file("embedded-kafka-schema-registry"))
.settings(name := "embedded-kafka-schema-registry")
.settings(commonSettings: _*)
.settings(libraryDependencies ++= EmbeddedKafkaSchemaRegistry.prodDeps)
lazy val kafkaStreams = (project in file("kafka-streams"))
.settings(name := "embedded-kafka-schema-registry-streams")
.settings(commonSettings: _*)
.settings(libraryDependencies ++= KafkaStreams.prodDeps)
.dependsOn(embeddedKafkaSchemaRegistry)