forked from cfeduke/akka-actor-statsd
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
86 lines (77 loc) · 1.98 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
import ReleaseTransformations._
val commonSettings = Seq(
organization := "com.newmotion",
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
homepage := Some(url("https://github.com/NewMotion/akka-statsd")),
libraryDependencies ++= Seq(
akka("testkit"),
"org.scalatest" %% "scalatest" % "3.2.2"
).map(_ % "test"),
scalaVersion := tnm.ScalaVersion.curr,
crossScalaVersions := Seq(tnm.ScalaVersion.curr, tnm.ScalaVersion.prev),
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
)
val `akka-statsd-core` = project
.enablePlugins(OssLibPlugin)
.settings(
commonSettings,
libraryDependencies ++= Seq(
akka("actor"),
akka("slf4j")
)
)
val `akka-statsd-http-client` = project
.enablePlugins(OssLibPlugin)
.dependsOn(`akka-statsd-core`)
.settings(
commonSettings,
libraryDependencies ++= Seq(
akka("http"),
akka("stream")
)
)
val `akka-statsd-http-server` = project
.enablePlugins(OssLibPlugin)
.dependsOn(`akka-statsd-core`)
.settings(
commonSettings,
libraryDependencies ++= Seq(
akka("http"),
akka("stream"),
"org.scala-lang.modules" %% "scala-java8-compat" % "0.9.1",
akka("http-testkit") % "test"
)
)
val `akka-statsd` =
project.in(file("."))
.enablePlugins(OssLibPlugin)
.aggregate(
`akka-statsd-core`,
`akka-statsd-http-server`,
`akka-statsd-http-client`
)
.settings(
commonSettings,
publish := {}
)
def akka(lib: String) = {
val version = lib match {
case x if x.startsWith("http") => "10.2.0"
case _ => "2.6.9"
}
"com.typesafe.akka" %% s"akka-$lib" % version
}