forked from creativescala/creative-scala
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
37 lines (28 loc) · 1.04 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
scalaVersion := "2.12.2"
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-unchecked",
"-feature",
"-language:implicitConversions",
"-language:postfixOps",
"-Ywarn-dead-code",
"-Xfatal-warnings"
)
enablePlugins(TutPlugin)
resolvers += Resolver.bintrayRepo("underscoreio", "training")
libraryDependencies ++= Seq(
"underscoreio" %% "doodle" % "0.8.0",
"org.typelevel" %% "cats" % "0.9.0"
)
scalacOptions in Tut := (scalacOptions in Tut).value.filterNot(Set("-Ywarn-unused-import"))
tutSourceDirectory := sourceDirectory.value / "pages"
tutTargetDirectory := target.value / "pages"
lazy val pdf = taskKey[Unit]("Build the PDF version of the book")
lazy val html = taskKey[Unit]("Build the HTML version of the book")
lazy val epub = taskKey[Unit]("Build the ePUB version of the book")
lazy val all = taskKey[Unit]("Build all versions of the book")
pdf := { tutQuick.value ; "grunt pdf" ! }
html := { tutQuick.value ; "grunt html" ! }
epub := { tutQuick.value ; "grunt epub" ! }
all := { pdf.value ; html.value ; epub.value }