-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.sbt
80 lines (71 loc) · 2.6 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
name := "zio-slides"
version := "0.1"
val animusVersion = "0.1.12"
val laminarVersion = "0.14.2"
val zioConfigVersion = "3.0.0-RC8"
val zioHttpVersion = "2.0.0-RC7"
val zioVersion = "2.0.0-RC5"
Global / onChangedBuildSource := ReloadOnSourceChanges
inThisBuild(
List(
scalaVersion := "2.13.8",
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
)
val sharedSettings = Seq(
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.13.2" cross CrossVersion.full),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
scalacOptions ++= Seq("-Ymacro-annotations", "-Xfatal-warnings"),
resolvers ++= Seq(
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"Sonatype OSS Snapshots s01" at "https://s01.oss.sonatype.org/content/repositories/snapshots"
),
libraryDependencies ++= Seq(
"io.suzaku" %%% "boopickle" % "1.3.2",
"dev.zio" %%% "zio" % zioVersion,
"dev.zio" %%% "zio-streams" % zioVersion,
"org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided
),
scalaVersion := "2.13.8"
)
scalacOptions ++= Seq("-Ymacro-annotations", "-Xfatal-warnings")
lazy val backend = project
.in(file("backend"))
.enablePlugins(JavaAppPackaging)
.settings(
sharedSettings,
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
libraryDependencies ++= Seq(
"dev.zio" %% "zio-config" % zioConfigVersion,
"dev.zio" %% "zio-config-magnolia" % zioConfigVersion,
"dev.zio" %% "zio-test" % zioVersion % Test,
"dev.zio" %% "zio-test-sbt" % zioVersion % Test,
"io.d11" %% "zhttp" % zioHttpVersion
)
)
.dependsOn(shared)
lazy val frontend = project
.in(file("frontend"))
.enablePlugins(ScalaJSPlugin)
.settings(
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.ESModule) },
scalaJSLinkerConfig ~= { _.withSourceMap(false) },
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq(
"io.github.kitlangton" %%% "animus" % animusVersion,
"com.raquo" %%% "laminar" % laminarVersion,
"io.github.cquiroz" %%% "scala-java-time" % "2.3.0",
"io.laminext" %%% "websocket" % "0.14.3"
)
)
.settings(sharedSettings)
.dependsOn(shared)
lazy val shared = project
.enablePlugins(ScalaJSPlugin)
.in(file("shared"))
.settings(
sharedSettings,
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.ESModule) },
scalaJSLinkerConfig ~= { _.withSourceMap(false) }
)