-
-
Notifications
You must be signed in to change notification settings - Fork 118
/
build.sbt
51 lines (45 loc) · 1.34 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
import Dependencies._
lazy val baseSettings: Seq[Setting[_]] = Seq(
scalaVersion := "2.13.13",
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature",
"-language:higherKinds",
"-language:implicitConversions",
"-language:existentials",
"-language:postfixOps",
"-unchecked",
"-Ywarn-value-discard"
// "-Wconf:cat=other-match-analysis:error", // uncomment to transform non-exhaustive warnings into errors
// "-Wconf:cat=unchecked:error", // uncomment to transform type erasure warnings into errors
),
libraryDependencies ++= Seq(
kantanGeneric,
scalatest,
scalacheck,
)
)
lazy val foundation = project
.in(file("."))
.settings(moduleName := "foundation")
.settings(baseSettings: _*)
.aggregate(exercises, answers)
.dependsOn(exercises, answers)
lazy val exercises = project
.settings(moduleName := "foundation-exercises")
.settings(baseSettings: _*)
lazy val answers = project
.settings(moduleName := "foundation-answers")
.settings(baseSettings: _*)
lazy val slides = project
.dependsOn(answers)
.settings(moduleName := "foundation-slides")
.settings(baseSettings: _*)
.settings(
mdocIn := baseDirectory.value / "mdoc",
mdocOut := baseDirectory.value / "docs"
)
.enablePlugins(MdocPlugin)
addCommandAlias("testAnswers", "answers/test")