-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
40 lines (34 loc) · 965 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
30
31
32
33
34
35
36
37
38
39
40
import Dependencies._
lazy val commonSettings = Vector(
version := "1.0.0",
scalaVersion := "2.12.1"
)
lazy val root = (project in file("."))
.settings(commonSettings: _*)
.settings(
name := "tracing-future-demo"
).aggregate(tracing, notracing, agent, snippets)
lazy val tracing = (project in file("tracing"))
.settings(commonSettings: _*)
.settings(
name := "tracing",
libraryDependencies += sourcecode
)
lazy val notracing = (project in file("notracing"))
.settings(commonSettings: _*)
.settings(
name := "notracing"
)
lazy val agent = (project in file("notracing"))
.settings(commonSettings: _*)
.settings(
name := "agent",
target := baseDirectory.value / "target_agent",
fork := true,
javaOptions += s"-javaagent:${baseDirectory.value}/agent_2.12.jar"
)
lazy val snippets = (project in file("snippets"))
.settings(commonSettings: _*)
.settings(
name := "snippets"
).dependsOn(tracing)