-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
69 lines (57 loc) · 1.83 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
import Dependencies._
ThisBuild / scalaVersion := "3.1.1"
ThisBuild / version := "0.1.0"
ThisBuild / organization := "uk.co.odinconsultants"
ThisBuild / organizationName := "OdinConsultants"
ThisBuild / evictionErrorLevel := Level.Warn
ThisBuild / scalafixDependencies += Libraries.organizeImports
ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
Compile / run / fork := true
Global / onChangedBuildSource := ReloadOnSourceChanges
Global / semanticdbEnabled := true // for metals
val commonSettings = List(
scalacOptions ++= List("-source:future"),
scalafmtOnCompile := false, // recommended in Scala 3
testFrameworks += new TestFramework("weaver.framework.CatsEffect"),
libraryDependencies ++= Seq(
Libraries.cats,
Libraries.testkit,
Libraries.catsEffect,
Libraries.fs2Core,
Libraries.fs2Kafka,
Libraries.ip4s,
Libraries.logBack,
Libraries.dreadnoughtCore,
Libraries.dreadnoughtDocker,
Libraries.dreadnoughtExamples,
)
)
lazy val root = (project in file("."))
.settings(
name := "KafkaPlayground"
)
.aggregate(lib, core, it)
lazy val lib = (project in file("modules/lib"))
.settings(commonSettings: _*)
lazy val core = (project in file("modules/core"))
.settings(commonSettings: _*)
.dependsOn(lib)
// integration tests
lazy val it = (project in file("modules/it"))
.settings(commonSettings: _*)
.dependsOn(core)
.settings(
libraryDependencies ++= List(
"ch.qos.logback" % "logback-classic" % "1.2.11" % Test
)
)
lazy val docs = project
.in(file("docs"))
.settings(
mdocIn := file("modules/docs"),
mdocOut := file("target/docs"),
mdocVariables := Map("VERSION" -> version.value),
)
.dependsOn(core)
.enablePlugins(MdocPlugin)
addCommandAlias("runLinter", ";scalafixAll --rules OrganizeImports")