-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
87 lines (70 loc) · 3.28 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name in ThisBuild := "gazette"
scalaVersion in ThisBuild := "2.10.5"
licenses in ThisBuild += ("BSD 2-Clause", url("http://opensource.org/licenses/BSD-2-Clause"))
resolvers in ThisBuild ++= List(
"bmjames" at "https://dl.bintray.com/bmjames/maven",
"oncue" at "https://dl.bintray.com/oncue/releases",
"scalaz" at "https://dl.bintray.com/scalaz/releases",
"tpolecat" at "https://dl.bintray.com/tpolecat/maven"
)
val doobieVersion = "0.2.2"
def http4sProject(project: String) =
"org.http4s" %% s"http4s-${project}" % "0.7.0" exclude("com.chuusai", "shapeless_2.10.4")
val monocleVersion = "1.1.1"
val scalazVersion = "7.1.2"
libraryDependencies in ThisBuild ++= List(
compilerPlugin("org.scalamacros" % ("paradise_" ++ scalaVersion.value) % "2.0.1"),
"io.argonaut" %% "argonaut" % "6.1",
"org.tpolecat" %% "atto-core" % "0.4.1",
"org.tpolecat" %% "doobie-core" % doobieVersion,
"org.tpolecat" %% "doobie-contrib-h2" % doobieVersion,
"com.h2database" % "h2" % "1.3.170",
http4sProject("argonaut"),
http4sProject("blazeserver"),
http4sProject("blazeclient"),
http4sProject("dsl"),
http4sProject("server"),
"com.github.julien-truffaut" %% "monocle-core" % monocleVersion,
"com.github.julien-truffaut" %% "monocle-macro" % monocleVersion,
"net.bmjames" %% "scala-optparse-applicative" % "0.2.1",
"oncue.knobs" %% "core" % "3.1.4",
"oncue.journal" %% "core" % "2.1.1",
"oncue" %% "remotely-core" % "1.3.0" exclude("com.chuusai", "shapeless_2.10.4"),
"org.scalaz" %% "scalaz-core" % scalazVersion,
"org.scalaz" %% "scalaz-concurrent" % scalazVersion,
"org.scalaz.stream" %% "scalaz-stream" % "0.7.1a",
"org.scodec" %% "scodec-core" % "1.7.0" exclude("com.chuusai", "shapeless_2.10.4"),
"org.scodec" %% "scodec-stream" % "0.7.0",
"org.spire-math" %% "spire" % "0.10.1"
)
scalacOptions in ThisBuild ++= List(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:experimental.macros",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard"
)
lazy val protocol = project.in(file("protocol"))
lazy val core = project.in(file("core")).dependsOn(protocol)
initialCommands :=
"""
import gazette._
import gazette.Client._
import java.sql.Date
import org.http4s.Uri.IPv4
val uri = uriFromInfo(ServerInfo(IPv4("127.0.0.1"), 8080))
val todo1 = Todo("drive", "work", None, List("important"))
val todo2 = Todo("leave", "work", None, List("important"))
val todo3 = Todo("lunch", "personal", Some(Date.valueOf("2015-06-13")), List("food"))
val todo4 = Todo("movies", "social", Some(Date.valueOf("2015-06-11")), List("film"))
val allTodos = List(todo1, todo2, todo3, todo4)
"""