forked from zio/zio-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
59 lines (54 loc) · 1.91 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
import BuildHelper._
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"))
),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
scmInfo := Some(
ScmInfo(url("https://github.com/zio/zio-redis/"), "scm:git:[email protected]:zio/zio-redis.git")
)
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
addCommandAlias("testJVM", ";redis/test;benchmarks/test:compile")
addCommandAlias("testJVM211", ";redis/test")
lazy val root =
project
.in(file("."))
.settings(skip in publish := true)
.aggregate(redis, benchmarks)
lazy val redis =
project
.in(file("redis"))
.enablePlugins(BuildInfoPlugin)
.settings(stdSettings("zio-redis"))
.settings(buildInfoSettings("zio.redis"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.0-RC21",
"dev.zio" %% "zio-test" % "1.0.0-RC21" % Test,
"dev.zio" %% "zio-test-sbt" % "1.0.0-RC21" % Test
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
lazy val benchmarks =
project
.in(file("benchmarks"))
.dependsOn(redis)
.enablePlugins(JmhPlugin)
.settings(
crossScalaVersions -= Scala211,
skip in publish := true,
libraryDependencies ++= Seq(
"dev.profunktor" %% "redis4cats-effects" % "0.10.0",
"io.laserdisc" %% "laserdisc-fs2" % "0.4.0"
)
)