-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
47 lines (43 loc) · 1.35 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
lazy val baseSettings: Seq[Setting[_]] = Seq(
scalaVersion := "2.12.7",
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:higherKinds",
"-language:implicitConversions", "-language:existentials",
"-unchecked",
"-Yno-adapted-args",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture"
),
resolvers += Resolver.sonatypeRepo("releases")
)
lazy val doobie = project.in(file("."))
.settings(moduleName := "doobie")
.settings(baseSettings: _*)
.aggregate(core, slides)
.dependsOn(core, slides)
lazy val core = project
.settings(moduleName := "doobie-core")
.settings(baseSettings: _*)
.settings(
libraryDependencies ++= List(
"co.fs2" %% "fs2-io" % "1.0.0",
"org.typelevel" %% "cats-core" % "1.5.0",
"org.typelevel" %% "cats-effect" % "1.0.0",
"org.tpolecat" %% "doobie-specs2" % "0.6.1-SNAPSHOT",
"org.postgresql" % "postgresql" % "42.2.5",
"ch.qos.logback" % "logback-classic" % "1.2.3"
)
)
lazy val slides = project
.settings(moduleName := "doobie-slides")
.settings(baseSettings: _*)
.settings(
tutSourceDirectory := baseDirectory.value / "tut",
tutTargetDirectory := baseDirectory.value / "../docs",
watchSources ++= (tutSourceDirectory.value ** "*.html").get
).dependsOn(core)
.enablePlugins(TutPlugin)