-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
53 lines (44 loc) · 1.31 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
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.13.12"
val CirceVersion = "0.14.0-M5"
lazy val domain = (project in file("domain"))
.settings(
name := "customer-service",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.1.1",
"org.typelevel" %% "cats-effect" % "3.4.4",
"org.typelevel" %% "log4cats-slf4j" % "2.7.0",
),
)
lazy val protobuf =
project
.in(file("protobuf"))
.settings(
name := "protobuf",
//scalaVersion := scala3Version
)
.enablePlugins(Fs2Grpc)
lazy val `persistence-postgres-skunk` =
project
.in(file("persistence-postgres-skunk"))
.settings(
libraryDependencies ++= Seq(
"org.tpolecat" %% "skunk-core" % "0.6.4"
)
)
.dependsOn(domain)
lazy val `main-grpc-postgres-skunk` =
project
.in(file("main-grpc-postgres-skunk"))
.settings(
libraryDependencies ++= Seq(
"io.circe" %% "circe-generic" % CirceVersion,
"io.grpc" % "grpc-netty-shaded" % scalapb.compiler.Version.grpcJavaVersion,
"ch.qos.logback" % "logback-classic" % "1.5.6" % Runtime
)
)
.dependsOn(domain, `persistence-postgres-skunk`, protobuf)
lazy val root = (project in file("."))
.settings(
name := "personal-grpc",
).aggregate(domain)