-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
104 lines (93 loc) · 2.71 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import Dependencies._
import sbt.Keys.{homepage, organizationName, startYear}
lazy val commonSettings = Seq(
scalacOptions in(Compile, doc) ++= Seq("-no-link-warnings"),
scalaVersion := crossScalaVersions.value.head,
crossScalaVersions := Seq("2.13.14", "2.12.19", "3.3.3"),
publishTo := Some(Resolver.evolutionReleases),
versionScheme := Some("semver-spec")
)
lazy val publishSettings = Seq(
homepage := Some(new URL("http://github.com/evolution-gaming/akka-tools")),
startYear := Some(2016),
organizationName := "Evolution",
organizationHomepage := Some(url("http://evolution.com")),
releaseCrossBuild := true,
organization := "com.evolutiongaming",
licenses := Seq("MIT" -> url("http://www.opensource.org/licenses/mit-license.html"))
)
lazy val allSettings = commonSettings ++ publishSettings
lazy val akkaTools = (project
in file(".")
settings (name := "akka-tools")
settings allSettings
aggregate(instrumentation, cluster, persistence, serialization, util, test))
lazy val instrumentation = (project
in file("instrumentation")
dependsOn util
settings (
name := "akka-tools-instrumentation",
libraryDependencies ++= Seq(
Akka.Actor,
ConfigTools,
Prometheus.simpleclient))
settings allSettings)
lazy val cluster = (project
in file("cluster")
dependsOn (test % "test->compile")
settings(
name := "akka-tools-cluster",
libraryDependencies ++= Seq(
Akka.Actor,
Akka.Cluster,
Akka.ClusterSharding,
Akka.TestKit % Test,
Logging,
ConfigTools,
Nel,
ScalaTest % Test))
settings allSettings)
lazy val persistence = (project
in file("persistence")
dependsOn (serialization, test % "test->compile")
settings(
name := "akka-tools-persistence",
libraryDependencies ++= Seq(
Akka.Actor,
ScalaTools,
ConfigTools,
Akka.TestKit % Test,
ScalaTest % Test))
settings allSettings)
lazy val serialization = (project
in file("serialization")
dependsOn (test % "test->compile")
settings(
name := "akka-tools-serialization",
libraryDependencies ++= Seq(
Akka.Actor,
Logging,
Akka.AkkaPersistence,
ScalaTest % Test))
settings allSettings)
lazy val util = (project
in file("util")
dependsOn (test % "test->compile")
settings(
name := "akka-tools-util",
libraryDependencies ++= Seq(
Akka.Actor,
Akka.TestKit % Test,
ScalaTest % Test,
Logging))
settings allSettings)
lazy val test = (project
in file("test")
settings(
name := "akka-tools-test",
libraryDependencies ++= Seq(
Akka.Actor,
Akka.TestKit,
ScalaTest))
settings allSettings)
addCommandAlias("check", "show version")