generated from miguelemosreverte/Akka-Cassandra-Persistence-Base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
86 lines (79 loc) · 2.32 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
81
82
83
84
85
86
// 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")
ThisBuild / publish / skip := true // TODO
lazy val commonSettings = Seq(
run / fork := true,
Test / testForkedParallel := true,
libraryDependencies ++= Seq(
Dependencies.Logging.all,
Dependencies.TypeSafe.all,
Dependencies.Testing.all
).flatten
)
lazy val scalafixSettings: Seq[Setting[_]] = Seq(
addCompilerPlugin(scalafixSemanticdb),
semanticdbEnabled := true,
scalafixOnCompile := true
)
lazy val dockerSettings = Seq(
dockerUsername := sys.props.get("docker.username"),
dockerRepository := sys.props.get("docker.registry"),
Docker / version := "latest",
Docker / organization := "prom3theus",
Docker / dockerBaseImage := "openjdk",
Docker / packageName := "prom3theus/akka-to-zio",
Docker / dockerExposedPorts := Seq(9042)
)
lazy val root = (project in file("."))
.settings(
name := "akka-to-zio"
)
.aggregate(akka, zio, e2e)
lazy val e2e = project
.settings(
name := "e2e"
)
.settings(commonSettings, scalafixSettings)
lazy val akka = project
.settings(
name := "akka"
)
.settings(commonSettings, scalafixSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.Akka.all,
Dependencies.AkkaTyped.all
).flatten
)
.settings(dockerSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.Prometheus.all,
Dependencies.Kamon.all
).flatten,
javaAgents += Dependencies.Kamon.agent
)
.enablePlugins(DockerPlugin, AshScriptPlugin, JavaAgent)
lazy val zio = project
.settings(
name := "zio"
)
.settings(commonSettings, scalafixSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.Zio.all,
Dependencies.Circee.all,
Dependencies.Quill.all,
Dependencies.Cassandra.all,
Dependencies.Shardcake.all,
Dependencies.Jackson.all
).flatten
)
.settings(dockerSettings)
.enablePlugins(DockerPlugin, AshScriptPlugin)