-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
65 lines (60 loc) · 1.45 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
import Settings.{client => cli, server => ser, _}
ThisBuild / evictionErrorLevel := Level.Warn
lazy val root = project
.settings(
name := s"$projectName-root",
commands ++= Seq(ReleaseCmd, ReleaseClientCmd),
projectSettings,
preventPublication
)
.in(file("."))
.aggregate(shared.jvm, shared.js, client, server)
lazy val shared =
crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.jvmSettings(
scalaVersion := scala2V,
libraryDependencies ++= Seq(
"io.circe" %% "circe-generic" % "0.14.6",
"io.circe" %% "circe-parser" % "0.14.6"
)
)
.jsSettings(
scalaVersion := scala3V,
libraryDependencies ++= Seq(
"io.circe" %%% "circe-generic" % "0.14.6",
"io.circe" %%% "circe-parser" % "0.14.6"
)
)
.settings(
name := s"$projectName-shared",
projectSettings,
publicationSettings
)
.configure(
)
lazy val client =
project
.settings(
name := s"$projectName-client",
projectSettings,
cli.settings,
cli.deps,
preventPublication
)
.dependsOn(shared.js)
.enablePlugins(
ScalaJSPlugin
)
lazy val server =
project
.dependsOn(shared.jvm)
.settings(
projectSettings,
ser.settings,
publicationSettings,
libraryDependencies ++= ser.deps ++ ser.serverDeps,
ser.docker
)
.enablePlugins(DockerPlugin)
.enablePlugins(JavaAppPackaging)