forked from underscoreio/shapeless-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
38 lines (30 loc) · 1.07 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
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(
"com.chuusai" %% "shapeless" % "2.3.2",
"org.scalacheck" %% "scalacheck" % "1.10.1",
"org.typelevel" %% "cats" % "0.7.2"
)
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 ; html ; epub }