-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sc
82 lines (69 loc) · 1.98 KB
/
build.sc
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
70
71
72
73
74
75
76
77
78
79
80
81
82
import mill._, scalalib._, scalafmt._
trait FPModule extends ScalaModule with ScalafmtModule {
// val baseDir = build.millSourcePath
def scalaVersion = "3.3.1"
def scalacOptions: T[Seq[String]] = Seq(
"-encoding", "UTF-8",
"-feature",
"-Werror",
"-explain",
"-deprecation",
"-unchecked",
"-Wunused:all",
"-rewrite",
"-indent",
"-source", "future",
)
}
trait FpTestModule extends ScalaModule with TestModule.ScalaTest {
def scalatestVersion = "3.2.17"
def scalacheckVersion = "3.2.17.0"
def ivyDeps = Agg(
ivy"org.scalactic::scalactic:$scalatestVersion",
ivy"org.scalatest::scalatest:$scalatestVersion",
)
}
object chapter02 extends FPModule {
object test extends FpTestModule with ScalaTests
}
object chapter03 extends FPModule {
object test extends FpTestModule with ScalaTests
}
object chapter04 extends FPModule {
object test extends FpTestModule with ScalaTests
}
object chapter05 extends FPModule {
object test extends FpTestModule with ScalaTests
}
object chapter06 extends FPModule {
object test extends FpTestModule with ScalaTests
}
object chapter10 extends FPModule {
object test extends FpTestModule with ScalaTests {
def ivyDeps = super.ivyDeps() ++ Agg(
ivy"org.scalatestplus::scalacheck-1-17:$scalacheckVersion"
)
}
}
object chapter11 extends FPModule {
def moduleDeps = Seq(chapter06)
def scalacOptions = super.scalacOptions() ++ Agg(
"-Ykind-projector:underscores"
)
object test extends FpTestModule with ScalaTests {
def ivyDeps = super.ivyDeps() ++ Agg(
ivy"org.scalatestplus::scalacheck-1-17:$scalacheckVersion"
)
}
}
object chapter12 extends FPModule {
def moduleDeps = Seq(chapter06, chapter10)
def scalacOptions = super.scalacOptions() ++ Agg(
"-Ykind-projector:underscores"
)
object test extends FpTestModule with ScalaTests {
def ivyDeps = super.ivyDeps() ++ Agg(
ivy"org.scalatestplus::scalacheck-1-17:$scalacheckVersion"
)
}
}