This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.sbt
83 lines (74 loc) · 2.94 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
import CompileFlags._
lazy val scala213 = "2.13.1"
lazy val scala212 = "2.12.14"
lazy val supportedScalaVersions = List(scala213, scala212)
ThisBuild / scalaVersion := scala213
ThisBuild / parallelExecution := false
ThisBuild / scalacOptions ++= crossScalacOptions(scalaVersion.value)
ThisBuild / pushRemoteCacheTo := Some(
MavenCache("local-cache", baseDirectory.value / sys.env.getOrElse("CACHE_PATH", "sbt-cache"))
)
resolvers += Resolver.sonatypeRepo("releases")
lazy val root = (project in file(".")).settings(skip in publish := true).aggregate(core, context, httpServer, httpClient, httpTest, amqp)
lazy val amqp = Project(id = "scala-opentracing-amqp", base = file("amqp")).settings(
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
CompileTimeDependencies.fs2Rabbit,
TestsDependencies.scalatest
)
)
lazy val core = Project(id = "scala-opentracing-core", base = file("core")).settings(
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
CompileTimeDependencies.catsEffect,
CompileTimeDependencies.log4catsSlf4j
)
)
lazy val context = Project(id = "scala-opentracing-context", base = file("context"))
.dependsOn(core)
.settings(
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
CompileTimeDependencies.cats,
CompileTimeDependencies.opentracingApi,
CompileTimeDependencies.opentracingUtil,
CompileTimeDependencies.opentracingDd,
CompileTimeDependencies.scalaCompat,
CompileTimeDependencies.scalaLogging,
CompileTimeDependencies.logstashLogbackEncoder,
TestsDependencies.scalatest,
TestsDependencies.logback,
compilerPlugin(CompileTimeDependencies.kindProjector)
)
)
lazy val httpServer = Project(id = "scala-opentracing-http4s-server-tapir", base = file("http/server"))
.dependsOn(context % "test->test;compile->compile")
.settings(
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(
CompileTimeDependencies.tapir,
CompileTimeDependencies.tapirHttp4sServer,
compilerPlugin(CompileTimeDependencies.kindProjector)
)
)
lazy val httpClient = Project(id = "scala-opentracing-http4s-client-blaze", base = file("http/client"))
.dependsOn(context)
.settings(
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(CompileTimeDependencies.http4s)
)
lazy val httpTest = Project(id = "scala-opentracing-http4s-test", base = file("http/test"))
.dependsOn(httpClient, httpServer % "test->test;compile->compile")
.settings(
libraryDependencies ++= Seq(
TestsDependencies.circe,
TestsDependencies.circeGeneric,
TestsDependencies.circeGenericExtras,
TestsDependencies.circeHttp4sCirce,
TestsDependencies.tapirJsonCirce,
TestsDependencies.requests,
TestsDependencies.wiremock,
TestsDependencies.http4sBlazeClient
),
skip in publish := true
)