-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
43 lines (40 loc) · 1.11 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
lazy val baseSettings: Seq[Setting[_]] = Seq(
scalaVersion := "2.12.14",
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature",
"-language:higherKinds",
"-language:implicitConversions",
"-language:existentials",
"-unchecked",
"-Yno-adapted-args",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture"
),
resolvers += Resolver.sonatypeRepo("releases")
)
lazy val `intro-cats-effect` = project
.in(file("."))
.settings(moduleName := "intro-cats-effect")
.settings(baseSettings: _*)
.aggregate(core, slides)
.dependsOn(core, slides)
lazy val core = project
.settings(moduleName := "intro-cats-effect-core")
.settings(baseSettings: _*)
.settings(
libraryDependencies ++= Seq("org.typelevel" %% "cats-effect" % "3.2.0")
)
lazy val slides = project
.settings(moduleName := "intro-cats-effect-slides")
.settings(baseSettings: _*)
.settings(
mdocIn := baseDirectory.value / "mdoc",
mdocOut := baseDirectory.value / "../docs",
watchSources ++= (mdocIn.value ** "*.html").get
)
.dependsOn(core)
.enablePlugins(MdocPlugin)