forked from zio/zio-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
80 lines (73 loc) · 2.86 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
import BuildHelper._
Global / onChangedBuildSource := ReloadOnSourceChanges
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://github.com/zio/zio-redis/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer("jdegoes", "John De Goes", "[email protected]", url("https://degoes.net")),
Developer("mijicd", "Dejan Mijic", "[email protected]", url("https://github.com/mijicd"))
)
)
)
addCommandAlias("prepare", "fix; fmt")
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
addCommandAlias("fmtCheck", "all scalafmtSbtCheck scalafmtCheckAll")
addCommandAlias("fix", "scalafixAll")
addCommandAlias("fixCheck", "scalafixAll --check")
lazy val root =
project
.in(file("."))
.settings(publish / skip := true)
.aggregate(redis, benchmarks, example)
lazy val redis =
project
.in(file("redis"))
.enablePlugins(BuildInfoPlugin)
.settings(stdSettings("zio-redis"))
.settings(buildInfoSettings("zio.redis"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio-streams" % Zio,
"dev.zio" %% "zio-logging" % "0.5.11",
"dev.zio" %% "zio-schema" % "0.0.6",
"dev.zio" %% "zio-test" % Zio % Test,
"dev.zio" %% "zio-test-sbt" % Zio % Test
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
lazy val benchmarks =
project
.in(file("benchmarks"))
.settings(stdSettings("benchmarks"))
.dependsOn(redis)
.enablePlugins(JmhPlugin)
.settings(
publish / skip := true,
libraryDependencies ++= Seq(
"dev.profunktor" %% "redis4cats-effects" % "0.14.0",
"io.chrisdavenport" %% "rediculous" % "0.0.12",
"io.laserdisc" %% "laserdisc-fs2" % "0.4.1"
)
)
lazy val example =
project
.in(file("example"))
.settings(stdSettings("example"))
.dependsOn(redis)
.settings(
publish / skip := true,
libraryDependencies ++= Seq(
"com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.9",
"com.softwaremill.sttp.client" %% "circe" % "2.2.9",
"de.heikoseeberger" %% "akka-http-circe" % "1.37.0",
"dev.zio" %% "zio-streams" % Zio,
"dev.zio" %% "zio-config-magnolia" % "1.0.6",
"dev.zio" %% "zio-config-typesafe" % "1.0.6",
"dev.zio" %% "zio-prelude" % "1.0.0-RC5",
"io.circe" %% "circe-core" % "0.14.1",
"io.circe" %% "circe-generic" % "0.14.1",
"io.scalac" %% "zio-akka-http-interop" % "0.4.0"
)
)