This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
forked from trace4cats/trace4cats-newrelic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
45 lines (41 loc) · 1.41 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
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 += "-Wconf:any:wv",
Test / fork := true,
resolvers += Resolver.sonatypeRepo("releases"),
)
lazy val noPublishSettings =
commonSettings ++ Seq(publish := {}, publishArtifact := false, publishTo := None, publish / skip := true)
lazy val publishSettings = commonSettings ++ Seq(
publishMavenStyle := true,
pomIncludeRepository := { _ =>
false
},
Test / publishArtifact := false
)
lazy val root = (project in file("."))
.settings(noPublishSettings)
.settings(name := "Trace4Cats New Relic")
.aggregate(`newrelic-http-exporter`)
lazy val `newrelic-http-exporter` =
(project in file("modules/newrelic-http-exporter"))
.settings(publishSettings)
.settings(
name := "trace4cats-newrelic-http-exporter",
libraryDependencies ++= Seq(
Dependencies.circeCore,
Dependencies.http4sCirce,
Dependencies.http4sBlazeClient,
Dependencies.trace4catsModel,
Dependencies.trace4catsKernel,
Dependencies.trace4catsExporterCommon,
Dependencies.trace4catsExporterHttp
)
)