-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
62 lines (59 loc) · 2.14 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
lazy val commonSettings = Seq(
Compile / compile / javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) =>
Seq(compilerPlugin(Dependencies.kindProjector), compilerPlugin(Dependencies.betterMonadicFor))
case _ => Seq.empty
}
},
scalacOptions += {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) => "-Wconf:any:wv"
case _ => "-Wconf:any:v"
}
},
Test / fork := true,
resolvers += Resolver.sonatypeRepo("releases"),
)
lazy val noPublishSettings =
commonSettings ++ Seq(publish := {}, publishArtifact := false, publishTo := None, publish / skip := true)
lazy val root = (project in file("."))
.settings(noPublishSettings)
.settings(name := "Trace4Cats Docs")
.aggregate(example)
lazy val example = (project in file("modules/example"))
.settings(noPublishSettings)
.settings(
name := "trace4cats-example",
libraryDependencies ++= Seq(
Dependencies.trace4catsCore,
Dependencies.trace4catsFs2,
Dependencies.trace4catsTailSampling,
Dependencies.trace4catsAvro,
Dependencies.trace4catsAvroExporter,
Dependencies.trace4catsAvroServer,
Dependencies.trace4catsJaeger,
Dependencies.trace4catsCloudtraceGrpc,
Dependencies.trace4catsCloudtraceHttp,
Dependencies.trace4catsOtlpGrpc,
Dependencies.trace4catsOtlpHttp,
Dependencies.trace4catsOtelJaeger,
Dependencies.trace4catsDatadog,
Dependencies.trace4catsNewrelic,
Dependencies.trace4catsZipkin,
Dependencies.trace4catsZio,
Dependencies.trace4catsNatchez,
Dependencies.trace4catsSttpClient3,
Dependencies.trace4catsHttp4sClient,
Dependencies.trace4catsHttp4sServer,
Dependencies.trace4catsTailSamplingCache,
Dependencies.trace4catsTailSamplingRedis,
Dependencies.trace4catsDynamicSamplingHttp4s,
Dependencies.trace4catsDynamicSamplingHttpServer,
Dependencies.catsEffect,
Dependencies.http4sBlazeClient,
Dependencies.http4sBlazeServer,
Dependencies.sttpClient3Http4s
)
)