-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
68 lines (63 loc) · 2.32 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
val zioVersion = "2.0.0-RC2"
inThisBuild(
List(
organization := "com.github.jczuchnowski",
homepage := Some(url("https://github.com/jczuchnowski/zio-pulsar/")),
licenses := List("BSD 2-Clause" -> url("https://opensource.org/licenses/BSD-2-Clause")),
developers := List(
Developer(
"jczuchnowski",
"Jakub Czuchnowski",
url("https://github.com/jczuchnowski")
)
),
scalaVersion := "3.1.1"
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
lazy val core = project
.in(file("core"))
.settings(
name := "zio-pulsar",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion % Provided,
"dev.zio" %% "zio-streams" % zioVersion % Provided,
"dev.zio" %% "zio-json" % "0.3.0-RC3" % Provided,
"com.sksamuel.avro4s" %% "avro4s-core" % "5.0.0.M1",
"org.apache.pulsar" % "pulsar-client" % "2.9.1",
"ch.qos.logback" % "logback-classic" % "1.2.10",
"dev.zio" %% "zio-test" % zioVersion % Test,
"dev.zio" %% "zio-test-sbt" % zioVersion % Test,
"dev.zio" %% "zio-test-junit" % zioVersion % Test,
"dev.zio" %% "zio-test-magnolia" % zioVersion % Test,
"org.testcontainers" % "pulsar" % "1.16.3" % Test,
"com.dimafeng" %% "testcontainers-scala-pulsar" % "0.40.1" % Test
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
lazy val examples = project
.in(file("examples"))
.settings(
publish / skip := true,
moduleName := "examples",
libraryDependencies ++= Seq(
//"dev.zio" %% "zio-logging" % "0.5.6",
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-streams" % zioVersion,
"dev.zio" %% "zio-json" % "0.3.0-RC3",
"com.sksamuel.avro4s" %% "avro4s-core" % "5.0.0.M1",
"ch.qos.logback" % "logback-classic" % "1.2.10"
)
)
.dependsOn(core)
lazy val root = project
.in(file("."))
.settings(
publish / skip := true
)
.aggregate(
core,
examples
)