-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
64 lines (55 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
52
53
54
55
56
57
58
59
60
61
62
63
64
ThisBuild / organization := "dagmendez"
ThisBuild / scalaVersion := "3.3.1"
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
lazy val `opaque-types-and-inline`: Project =
project
.in(file("."))
.aggregate(
basic,
standard,
advanced,
`scala-magic`,
workshop
)
lazy val basic: Project =
project
.in(file("01-basic"))
.settings(commonScalacOptions)
.settings(name := "basic")
lazy val standard: Project =
project
.in(file("02-standard"))
.settings(commonScalacOptions)
.settings(name := "standard")
lazy val advanced: Project =
project
.in(file("03-advanced"))
.settings(commonScalacOptions)
.settings(name := "advanced")
lazy val `scala-magic`: Project =
project
.in(file("04-scala-magic"))
.settings(commonScalacOptions)
.settings(
name := "scala-magic",
libraryDependencies ++= Seq(
)
)
lazy val `workshop`: Project = {
project
.in(file("06-workshop"))
.settings(commonScalacOptions)
.settings(
name := "workshop",
libraryDependencies ++= Seq(
)
)
}
lazy val commonScalacOptions = Seq(
Compile / console / scalacOptions --= Seq(
"-Wunused:_",
"-Xfatal-warnings"
),
Test / console / scalacOptions := (Compile / console / scalacOptions).value
)