-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
63 lines (52 loc) · 2.27 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
val Http4sVersion = "0.21.5"
val CirceVersion = "0.13.0"
val Specs2Version = "4.10.0"
val LogbackVersion = "1.2.3"
lazy val root = (project in file("."))
.settings(
organization := "com.marka",
name := "state",
version := "0.0.1-SNAPSHOT",
scalaVersion := "2.13.2",
libraryDependencies ++= Seq(
"mysql" % "mysql-connector-java" % "8.0.+",
"org.http4s" %% "http4s-blaze-server" % Http4sVersion,
"org.http4s" %% "http4s-blaze-client" % Http4sVersion,
"org.http4s" %% "http4s-circe" % Http4sVersion,
"org.http4s" %% "http4s-dsl" % Http4sVersion,
"io.circe" %% "circe-generic" % CirceVersion,
"org.specs2" %% "specs2-core" % Specs2Version % "test",
"ch.qos.logback" % "logback-classic" % LogbackVersion,
),
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3"),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
)
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value / "scalapb"
)
// (optional) If you need scalapb/scalapb.proto or anything from
// google/protobuf/*.proto
libraryDependencies ++= Seq(
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf"
)
libraryDependencies += "dev.zio" %% "zio" % "1.0.1"
libraryDependencies += "dev.zio" %% "zio-interop-cats" % "2.1.4.0"
libraryDependencies ++= Seq(
// Start with this one
"org.tpolecat" %% "doobie-core" % "0.9.0",
// And add any of these as needed
"org.tpolecat" %% "doobie-h2" % "0.9.0", // H2 driver 1.4.200 + type mappings.
"org.tpolecat" %% "doobie-hikari" % "0.9.0", // HikariCP transactor.
"org.tpolecat" %% "doobie-postgres" % "0.9.0", // Postgres driver 42.2.12 + type mappings.
"org.tpolecat" %% "doobie-quill" % "0.9.0", // Support for Quill 3.5.1
"org.tpolecat" %% "doobie-specs2" % "0.9.0" % "test", // Specs2 support for typechecking statements.
"org.tpolecat" %% "doobie-scalatest" % "0.9.0" % "test" // ScalaTest support for typechecking statements.
)
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-language:higherKinds",
"-language:postfixOps",
"-feature",
"-Xfatal-warnings",
)