-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
52 lines (45 loc) · 1.25 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
import Dependencies._
lazy val baseSettings: Seq[Setting[_]] = Seq(
scalaVersion := "2.13.1",
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature",
"-language:higherKinds",
"-language:implicitConversions",
"-language:existentials",
"-language:postfixOps",
"-unchecked",
"-Ywarn-value-discard"
),
addCompilerPlugin(kindProjector),
libraryDependencies ++= Seq(
cats,
refined,
circe,
scalacheck,
disciplineTest
)
)
lazy val `error-handling` = project
.in(file("."))
.settings(moduleName := "error-handling")
.settings(baseSettings: _*)
.aggregate(exercises, slides)
.dependsOn(exercises, slides)
lazy val exercises = project
.settings(moduleName := "error-handling-exercises")
.settings(baseSettings: _*)
lazy val slides = project
.dependsOn(exercises)
.settings(moduleName := "error-handling-slides")
.settings(baseSettings: _*)
.settings(
mdocIn := baseDirectory.value / "mdoc",
mdocOut := baseDirectory.value / "docs",
)
.enablePlugins(MdocPlugin)
addCommandAlias("testAnswers", "testOnly *AnswersTest")
addCommandAlias("testExercises3", "testOnly errorhandling.*ExercisesTest")
addCommandAlias("testExercises4", "testOnly types.*ExercisesTest")