-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
72 lines (66 loc) · 1.87 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
import Settings._
// Global Settings
ThisBuild / scalaVersion := "2.13.8"
ThisBuild / organization := "Prom3theus"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / dynverSeparator := "-"
ThisBuild / conflictManager := ConflictManager.latestRevision
ThisBuild / javacOptions ++= Seq("-source", "17", "-target", "17")
ThisBuild / scalacOptions ++= Seq("-Ymacro-annotations", "-target:jvm-17")
lazy val root = (project in file("."))
.settings(
name := "zio-actors-shardcake"
)
.settings(CommandAliases.aliases)
.aggregate(commons, `shard-manager`, zio)
lazy val commons = project
.settings(
name := "commons"
)
.settings(commonSettings, scalafixSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.Zio.all,
Dependencies.Shardcake.all
).flatten
)
.enablePlugins(ScalafixPlugin)
val commonsDep = commons % "compile->compile;test->test"
lazy val `shard-manager` = project
.settings(
name := "shard-manager"
)
.settings(commonSettings, scalafixSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.Zio.all,
Dependencies.Shardcake.all
).flatten
)
.enablePlugins(ScalafixPlugin)
.dependsOn(commonsDep)
.settings(
dockerSettings,
Docker / packageName := "prom3theus/shard-manager",
Docker / dockerExposedPorts := Seq(54321, 8080)
)
.enablePlugins(DockerPlugin, AshScriptPlugin)
lazy val zio = project
.settings(
name := "zio"
)
.settings(commonSettings, scalafixSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.Zio.all,
Dependencies.Shardcake.all
).flatten
)
.enablePlugins(ScalafixPlugin)
.dependsOn(commonsDep)
.settings(
dockerSettings,
Docker / packageName := "prom3theus/zio-actors-shardcake",
Docker / dockerExposedPorts := Seq(54321)
)
.enablePlugins(DockerPlugin, AshScriptPlugin)