-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
35 lines (31 loc) · 998 Bytes
/
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
lazy val baseSettings: Seq[Setting[_]] = Seq(
scalaVersion := "2.13.0",
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:higherKinds",
"-language:implicitConversions", "-language:existentials",
"-unchecked",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
),
resolvers += Resolver.sonatypeRepo("releases")
)
lazy val scala213 = project.in(file("."))
.settings(moduleName := "scala213")
.settings(baseSettings: _*)
.aggregate(core, slides)
.dependsOn(core, slides)
lazy val core = project
.settings(moduleName := "scala213-core")
.settings(baseSettings: _*)
lazy val slides = project
.settings(moduleName := "scala213-slides")
.settings(baseSettings: _*)
.settings(
tutSourceDirectory := baseDirectory.value / "tut",
tutTargetDirectory := baseDirectory.value / "../docs",
watchSources ++= (tutSourceDirectory.value ** "*.html").get
).dependsOn(core)
.enablePlugins(TutPlugin)