forked from underscoreio/essential-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
42 lines (33 loc) · 1.08 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
lazy val root = project.in(file("."))
.settings(tutSettings)
tutSourceDirectory := sourceDirectory.value / "pages"
tutTargetDirectory := target.value / "pages"
// scalaOrganization in ThisBuild := "org.typelevel"
scalaVersion in ThisBuild := "2.11.8"
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-unchecked",
"-feature",
"-Xlint",
"-Xfatal-warnings",
"-Ywarn-dead-code"
//"-Yliteral-types"
)
resolvers ++= Seq(Resolver.sonatypeRepo("snapshots"))
libraryDependencies ++= Seq()
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 json = taskKey[Unit]("Build the JSON 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".! }
json := { tutQuick.value ; "grunt json".! }
all := {
tutQuick.value
"grunt pdf".!
"grunt html".!
"grunt epub".!
}