forked from zio/zio-telemetry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
96 lines (86 loc) · 3.18 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
import BuildHelper._
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.dev/zio-telemetry/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"mijicd",
"Dejan Mijic",
url("https://github.com/mijicd")
),
Developer(
"runtologist",
"Simon Schenk",
url("https://github.com/runtologist")
)
),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
scmInfo := Some(
ScmInfo(
url("https://github.com/zio/zio-telemetry/"),
"scm:git:[email protected]:zio/zio-telemetry.git"
)
)
)
)
Global / onChangedBuildSource := ReloadOnSourceChanges
Global / testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
addCommandAlias("compileExamples", "opentracingExample/compile;opentelemetryExample/compile")
lazy val root =
project
.in(file("."))
.settings(publish / skip := true)
.aggregate(opentracing, opentelemetry, opencensus, docs)
lazy val opentracing =
project
.in(file("opentracing"))
.settings(stdSettings("zio-opentracing"))
.settings(libraryDependencies := Dependencies.opentracing)
lazy val opentelemetry =
project
.in(file("opentelemetry"))
.settings(stdSettings("zio-opentelemetry"))
.settings(libraryDependencies := Dependencies.opentelemetry)
lazy val opencensus = project
.in(file("opencensus"))
.settings(stdSettings("zio-opencensus"))
.settings(libraryDependencies := Dependencies.opencensus)
lazy val opentracingExample =
project
.in(file("opentracing-example"))
.settings(stdSettings("opentracing-example"))
.settings(publish / skip := true)
.settings(onlyWithScala2)
.settings(libraryDependencies := Dependencies.opentracingExample)
.dependsOn(opentracing)
lazy val opentelemetryExample =
project
.in(file("opentelemetry-example"))
.settings(stdSettings("opentelemetry-example"))
.settings(publish / skip := true)
.settings(onlyWithScala2)
.settings(libraryDependencies := Dependencies.opentelemetryExample)
.dependsOn(opentelemetry)
lazy val docs =
project
.in(file("zio-telemetry-docs"))
.settings(
moduleName := "zio-telemetry-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
projectName := "ZIO Telemetry",
mainModuleName := (opentracing / moduleName).value,
projectStage := ProjectStage.ProductionReady,
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(opentracing, opentelemetry, opencensus),
docsPublishBranch := "series/2.x"
)
.dependsOn(opentracing, opentelemetry, opencensus)
.enablePlugins(WebsitePlugin)