-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
35 lines (29 loc) · 970 Bytes
/
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
import Utils.*
Global / onChangedBuildSource := ReloadOnSourceChanges
inThisBuild(List(
organization := "dev.toniogela",
organizationName := "Antonio Gelameris",
scalaVersion := "3.3.1"
))
lazy val root = project.root(protocol, server, client)
lazy val protocol = crossProject(JVMPlatform, NativePlatform).pure
.in(file("protocol"))
.settings(
libraryDependencies ++= List(
"co.fs2" %%% "fs2-io" % "3.10-4b5f50b",
"co.fs2" %%% "fs2-scodec" % "3.10-4b5f50b",
"com.monovore" %%% "decline-effect" % "2.4.1"
)
)
lazy val server = project.in(file("server"))
.dependsOn(protocol.jvm)
.dockerized
.settings(
name := "fs2-chat-server",
run / fork := true,
run / connectInput := true,
run / outputStrategy := Some(StdoutOutput)
)
lazy val client = project.in(file("client")).native
.dependsOn(protocol.native)
.settings(name := "fs2-chat-client")