-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
executable file
·85 lines (78 loc) · 2.91 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
import ProjectPluginKeys._
import com.abdulradi.Dependencies.{scalaTest, _}
scalaVersion in ThisBuild := "2.12.4"
crossScalaVersions in ThisBuild := Seq("2.11.12", "2.12.4")
lazy val `opentracing-xray-core` =
(project in file("modules/core"))
.enableProjectPlugin()
.settings(
libraryDependencies ++= Seq(
atto,
Refined.core,
circe,
circeRefined
)
)
lazy val `opentracing-xray-jaeger` =
(project in file("modules/jaeger"))
.enableProjectPlugin()
.dependsOn(`opentracing-xray-core`)
.settings(
libraryDependencies ++= Seq(
Jaeger.core,
scalaTest % Test,
circeParser % Test
)
)
lazy val `opentracing-xray-zipkin` =
(project in file("modules/zipkin"))
.enableProjectPlugin()
.dependsOn(`opentracing-xray-core`)
.settings(
libraryDependencies ++= Seq(
"io.zipkin.brave" % "brave" % "4.9.0",
"io.zipkin.brave" % "brave-propagation-aws" % "4.9.0",
"io.opentracing.brave" % "brave-opentracing" % "0.22.1",
// "io.zipkin.aws" % "zipkin-reporter-xray-udp" % "0.8.5-SNAPSHOT"
scalaTest % Test
)
)
/*
lazy val `opentracing-xray-fat` = project
.enablePlugins(AssemblyPlugin)
.dependsOn(`opentracing-xray`)
.settings(
assemblyShadeRules in assembly := Seq(
// TODO: Drop Jaeger!
ShadeRule.rename("cats.**" -> "com.abdulradi.opentracing.xray.shaded_libs.cats.@1").inAll,
ShadeRule.rename("io.circe.**" -> "com.abdulradi.opentracing.xray.shaded_libs.circe.@1").inAll,
ShadeRule.rename("shapeless.**" -> "com.abdulradi.opentracing.xray.shaded_libs.shapeless.@1").inAll,
ShadeRule.rename("atto.**" -> "com.abdulradi.opentracing.xray.shaded_libs.atto.@1").inAll,
ShadeRule.rename("eu.timepit.refined.**" -> "com.abdulradi.opentracing.xray.shaded_libs.refined.@1").inAll,
ShadeRule.rename("machinist.**" -> "com.abdulradi.opentracing.xray.shaded_libs.machinist.@1").inAll,
ShadeRule.rename("macrocompat.**" -> "com.abdulradi.opentracing.xray.shaded_libs.macrocompat.@1").inAll
),
artifact in (Compile, assembly) := {
val art = (artifact in (Compile, assembly)).value
art.withClassifier(Some("assembly"))
},
assemblyMergeStrategy in assembly := {
case PathList("java", xs @ _*) => MergeStrategy.discard
case PathList("javax", xs @ _*) => MergeStrategy.discard
case PathList("scala", xs @ _*) => MergeStrategy.discard
case PathList("rootdoc.txt") => MergeStrategy.discard
case _ => MergeStrategy.deduplicate
},
addArtifact(artifact in (Compile, assembly), assembly),
skip in publish := true
)
lazy val `shadded-opentracing-xray` = project
.settings(
libraryDependencies += Jaeger.core,
packageBin in Compile := (assembly in (`opentracing-xray-fat`, Compile)).value
)
*/
addCommandAlias(
"fmt",
";headerCreate;test:headerCreate;sbt:scalafmt;scalafmt;test:scalafmt"
)