-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
54 lines (50 loc) · 1.77 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
43
44
45
46
47
48
49
50
51
52
53
54
lazy val baseSettings: Seq[Setting[_]] = Seq(
scalaVersion := "2.12.0",
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:higherKinds",
"-language:implicitConversions", "-language:existentials",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture"
),
libraryDependencies ++= Seq(
"com.github.julien-truffaut" %% "monocle-core" % "1.3.2",
"com.github.julien-truffaut" %% "monocle-macro" % "1.3.2",
"io.argonaut" %% "argonaut-monocle" % "6.2-RC1",
"io.gatling" %% "jsonpath" % "0.6.8",
"com.github.stacycurl" %% "pimpathon" % "1.8.0"
),
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
"Stacy Curl's repo" at "http://dl.bintray.com/stacycurl/repo/"
)
)
lazy val jsonpath = project.in(file("."))
.settings(moduleName := "jsonpath")
.settings(baseSettings: _*)
.aggregate(core, slides)
.dependsOn(core, slides)
lazy val core = project
.settings(moduleName := "jsonpath-core")
.settings(baseSettings: _*)
lazy val slides = project
.settings(moduleName := "jsonpath-slides")
.settings(baseSettings: _*)
.settings(tutSettings: _*)
.settings(ghpages.settings: _*)
.settings(
tutSourceDirectory := baseDirectory.value / "tut",
tutTargetDirectory := baseDirectory.value / "tut-out",
siteSourceDirectory := tutTargetDirectory.value,
siteMappings ++= Seq(tutTargetDirectory.value / "slides.html" -> "index.html"),
git.remoteRepo := "git@github.com:julien-truffaut/jsonpath.pres",
updateSite := Def.sequential(tut, GhPagesKeys.pushSite).value
).dependsOn(core)
lazy val updateSite = taskKey[Unit]("")