forked from evolution-gaming/kafka-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
142 lines (130 loc) · 4.13 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import Dependencies._
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / evictionErrorLevel := Level.Warn
ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible
lazy val commonSettings = Seq(
organization := "com.evolutiongaming",
homepage := Some(new URL("https://github.com/evolution-gaming/kafka-flow")),
startYear := Some(2019),
organizationName := "Evolution Gaming",
organizationHomepage := Some(url("https://evolution.com/")),
publishTo := Some(Resolver.evolutionReleases),
scalaVersion := "2.13.14",
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))),
testFrameworks += new TestFramework("munit.Framework"),
testOptions += Tests.Argument(new TestFramework("munit.Framework"), "+l"),
resolvers += Resolver.bintrayRepo("evolutiongaming", "maven"),
resolvers ++= Resolver.sonatypeOssRepos("public"),
libraryDependencySchemes ++= Seq(
"org.scala-lang.modules" %% "scala-java8-compat" % "always"
),
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.13.3" cross CrossVersion.full),
coverageScalacPluginVersion := "2.2.0",
)
lazy val root = (project in file("."))
.aggregate(
core,
`core-it-tests`,
`persistence-cassandra`,
`persistence-cassandra-it-tests`,
`persistence-kafka`,
`persistence-kafka-it-tests`,
metrics
)
.settings(commonSettings)
.settings(
name := "kafka-flow",
publish / skip := true
)
lazy val core = (project in file("core"))
.settings(commonSettings)
.settings(
name := "kafka-flow",
libraryDependencies ++= Seq(
Cats.core,
Cats.mtl,
Cats.effect,
Cats.effectTestkit % Test,
KafkaJournal.journal,
KafkaJournal.persistence,
Monocle.`macro` % Test,
Monocle.core % Test,
catsHelper,
scache,
skafka,
sstream,
Testing.munit % Test,
),
)
lazy val `core-it-tests` = (project in file("core-it-tests"))
.dependsOn(core)
.settings(commonSettings)
.settings(
name := "kafka-flow-core-it-tests",
libraryDependencies ++= Seq(
Testing.munit % Test,
Testing.Testcontainers.kafka % Test,
Testing.Testcontainers.munit % Test,
),
Test / fork := true,
publish / skip := true,
)
lazy val metrics = (project in file("metrics"))
.dependsOn(core)
.settings(commonSettings)
.settings(
name := "kafka-flow-metrics",
libraryDependencies ++= Seq(
smetrics,
Testing.munit % Test,
)
)
lazy val `persistence-cassandra` = (project in file("persistence-cassandra"))
.dependsOn(core)
.settings(commonSettings)
.settings(
name := "kafka-flow-persistence-cassandra",
libraryDependencies ++= Seq(
KafkaJournal.cassandra,
scassandra,
),
)
lazy val `persistence-cassandra-it-tests` = (project in file("persistence-cassandra-it-tests"))
.dependsOn(`persistence-cassandra`)
.settings(commonSettings)
.settings(
name := "kafka-flow-persistence-cassandra-it-tests",
libraryDependencies ++= Seq(
Testing.munit % Test,
Testing.Testcontainers.cassandra % Test,
Testing.Testcontainers.munit % Test
),
Test / fork := true,
publish / skip := true,
)
lazy val `persistence-kafka` = (project in file("persistence-kafka"))
.dependsOn(core, metrics)
.settings(commonSettings)
.settings(
name := "kafka-flow-persistence-kafka",
)
lazy val `persistence-kafka-it-tests` = (project in file("persistence-kafka-it-tests"))
.dependsOn(`persistence-kafka`)
.settings(commonSettings)
.settings(
name := "kafka-flow-persistence-kafka-it-tests",
libraryDependencies ++= Seq(
catsHelperLogback % Test,
Testing.munit % Test,
Testing.Testcontainers.kafka % Test,
Testing.Testcontainers.munit % Test,
),
Test / fork := true,
publish / skip := true,
)
lazy val docs = (project in file("kafka-flow-docs"))
.dependsOn(core, `persistence-cassandra`, `persistence-kafka`, metrics)
.settings(commonSettings)
.enablePlugins(MdocPlugin, DocusaurusPlugin)
.settings(scalacOptions -= "-Xfatal-warnings")
addCommandAlias("check", "show version")