forked from zio/zio-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
129 lines (119 loc) · 4.96 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import BuildHelper._
Global / onChangedBuildSource := ReloadOnSourceChanges
inThisBuild(
List(
developers := List(
Developer("jdegoes", "John De Goes", "[email protected]", url("https://degoes.net")),
Developer("mijicd", "Dejan Mijic", "[email protected]", url("https://github.com/mijicd"))
),
homepage := Some(url("https://zio.dev/zio-redis/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
organization := "dev.zio",
organizationName := "John A. De Goes and the ZIO contributors",
startYear := Some(2021)
)
)
ThisBuild / libraryDependencySchemes ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
)
addCommandAlias("compileBenchmarks", "benchmarks/Jmh/compile")
addCommandAlias("compileSources", "example/Test/compile; redis/Test/compile")
addCommandAlias("check", "fixCheck; fmtCheck; headerCheck")
addCommandAlias("fix", "scalafixAll")
addCommandAlias("fixCheck", "scalafixAll --check")
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
addCommandAlias("fmtCheck", "all scalafmtSbtCheck scalafmtCheckAll")
addCommandAlias("prepare", "fix; fmt; headerCreate")
lazy val root =
project
.in(file("."))
.settings(publish / skip := true)
.aggregate(redis, embedded, benchmarks, example, docs)
lazy val redis =
project
.in(file("redis"))
.enablePlugins(BuildInfoPlugin)
.settings(buildInfoSettings("zio.redis"))
.settings(scala3Settings)
.settings(stdSettings("zio-redis"))
.settings(
libraryDependencies ++= List(
"dev.zio" %% "zio-streams" % "2.0.8",
"dev.zio" %% "zio-logging" % "2.1.9",
"dev.zio" %% "zio-schema" % "0.3.1",
"dev.zio" %% "zio-schema-protobuf" % "0.3.1" % Test,
"dev.zio" %% "zio-test" % "2.0.8" % Test,
"dev.zio" %% "zio-test-sbt" % "2.0.8" % Test,
"org.scala-lang.modules" %% "scala-collection-compat" % "2.9.0"
),
testFrameworks := List(new TestFramework("zio.test.sbt.ZTestFramework"))
)
lazy val embedded =
project
.in(file("embedded"))
.enablePlugins(BuildInfoPlugin)
.settings(buildInfoSettings("zio.redis.embedded"))
.settings(scala3Settings)
.settings(stdSettings("zio-redis-embedded"))
.settings(
libraryDependencies ++= List(
"dev.zio" %% "zio" % "2.0.8",
"com.github.kstyrc" % "embedded-redis" % "0.6",
"dev.zio" %% "zio-schema" % "0.3.1" % Test,
"dev.zio" %% "zio-schema-protobuf" % "0.3.1" % Test,
"dev.zio" %% "zio-test" % "2.0.8" % Test,
"dev.zio" %% "zio-test-sbt" % "2.0.8" % Test
),
testFrameworks := List(new TestFramework("zio.test.sbt.ZTestFramework"))
)
.dependsOn(redis)
lazy val benchmarks =
project
.in(file("benchmarks"))
.enablePlugins(JmhPlugin)
.dependsOn(redis)
.settings(stdSettings("benchmarks"))
.settings(
crossScalaVersions -= Scala3,
publish / skip := true,
libraryDependencies ++= List(
"dev.profunktor" %% "redis4cats-effects" % "1.4.0",
"io.chrisdavenport" %% "rediculous" % "0.4.0",
"io.laserdisc" %% "laserdisc-fs2" % "0.6.0",
"dev.zio" %% "zio-schema-protobuf" % "0.3.1"
)
)
lazy val example =
project
.in(file("example"))
.dependsOn(redis)
.settings(stdSettings("example"))
.settings(
publish / skip := true,
libraryDependencies ++= List(
"com.softwaremill.sttp.client3" %% "zio" % "3.8.11",
"com.softwaremill.sttp.client3" %% "zio-json" % "3.8.11",
"dev.zio" %% "zio-streams" % "2.0.8",
"dev.zio" %% "zio-config-magnolia" % "3.0.7",
"dev.zio" %% "zio-config-typesafe" % "3.0.7",
"dev.zio" %% "zio-schema-protobuf" % "0.3.1",
"dev.zio" %% "zio-json" % "0.4.2",
"io.d11" %% "zhttp" % "2.0.0-RC11"
)
)
lazy val docs = project
.in(file("zio-redis-docs"))
.settings(
publish / skip := true,
moduleName := "zio-redis-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
projectName := "ZIO Redis",
mainModuleName := (redis / moduleName).value,
projectStage := ProjectStage.Experimental,
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(redis),
docsPublishBranch := "master",
libraryDependencies += "dev.zio" %% "zio-schema-protobuf" % "0.3.1"
)
.dependsOn(redis)
.enablePlugins(WebsitePlugin)