This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.sbt
86 lines (75 loc) · 2.7 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
import Dependencies._
name in ThisBuild := "opencensus-scala"
organization in ThisBuild := "com.github.sebruck"
scalaVersion in ThisBuild := "2.13.1"
scalafmtOnCompile in ThisBuild := true
crossScalaVersions in ThisBuild := Seq("2.13.1", "2.12.10")
releaseCrossBuild in ThisBuild := true
releasePublishArtifactsAction in ThisBuild := PgpKeys.publishSigned.value
publishTo in ThisBuild := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
lazy val root = (project in file("."))
.settings(
publishArtifact := false,
siteSubdirName in ScalaUnidoc := "api",
addMappingsToSiteDir(
mappings in (ScalaUnidoc, packageDoc),
siteSubdirName in ScalaUnidoc
),
// This is needed for unidoc, otherwise it can not generate the scala doc
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3")
)
.enablePlugins(ScalaUnidocPlugin)
.enablePlugins(SiteScaladocPlugin)
.aggregate(core, akkaHttp, http4s, elastic4s, doobie, http)
lazy val core = (project in file("core")).settings(
name := "opencensus-scala-core",
libraryDependencies := coreDependencies
)
lazy val akkaHttp = (project in file("akka-http"))
.settings(
name := "opencensus-scala-akka-http",
libraryDependencies := akkaHttpDependencies
)
.dependsOn(core, http % "compile->compile;test->test")
lazy val akkaHttpExample = (project in file("akka-http-example"))
.settings(
publishArtifact := false,
libraryDependencies ++= Seq(
"io.opencensus" % "opencensus-exporter-trace-logging" % "0.25.0",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.slf4j" % "log4j-over-slf4j" % "1.7.25",
"org.slf4j" % "jul-to-slf4j" % "1.7.25"
)
)
.dependsOn(akkaHttp)
lazy val http4s = (project in file("http4s"))
.settings(
name := "opencensus-scala-http4s",
libraryDependencies := http4sDependencies,
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3")
)
.dependsOn(core, http % "compile->compile;test->test")
lazy val elastic4s = (project in file("elastic4s"))
.settings(
name := "opencensus-scala-elastic4s",
libraryDependencies := elastic4sDependencies
)
.dependsOn(core, http % "compile->compile;test->test")
lazy val doobie = (project in file("doobie"))
.settings(
name := "opencensus-scala-doobie",
libraryDependencies := doobieDependencies,
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3")
)
.dependsOn(core, http % "compile->compile;test->test")
lazy val http = (project in file("http"))
.settings(
name := "opencensus-scala-http",
libraryDependencies := scalaTest
)
.dependsOn(core)