-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
29 lines (26 loc) · 1023 Bytes
/
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
import Dependencies._
lazy val root = (project in file(".")).
settings(
).aggregate(client, demo)
lazy val client = (project in file("client")).
settings(Commons.settings: _*).
settings(
name := "metrics-client",
libraryDependencies ++= rootDependencies,
libraryDependencies ++= testDependencies,
publishArtifact in Test := true,
mappings in (Test, packageBin) ~= { _.filter(_._2.matches(".*\\/metrics\\/test\\/.*"))},
mappings in (Test, packageSrc) ~= { _.filter(_._2.matches(".*\\/metrics\\/test\\/.*"))},
mappings in (Test, packageDoc) ~= { _.filter(_._2.matches(".*\\/metrics\\/test\\/.*"))}
)
lazy val demo = (project in file("demo")).
settings(Commons.settings: _*).
settings(
name := "metrics-client-demo",
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.2",
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0"
),
mainClass in (Compile,run) := Some("us.my_family.metrics.demo.RunDemo")
).
dependsOn(client)