This repository has been archived by the owner on May 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
56 lines (49 loc) · 2.32 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
val kamonCore = "io.kamon" %% "kamon-core" % "2.0.0"
lazy val root = (project in file("."))
.settings(
skip in publish := true,
name := "kamon-apm-reporter",
crossScalaVersions := Seq("2.11.12", "2.12.8", "2.13.0")
).aggregate(reporter, publishing)
lazy val reporter = (project in file("kamon-apm-reporter"))
.enablePlugins(AssemblyPlugin)
.settings(
skip in publish := true,
scalaVersion := "2.12.8",
crossScalaVersions := Seq("2.11.12", "2.12.8", "2.13.0"),
packageBin in Compile := assembly.value,
assembleArtifact in assemblyPackageScala := false,
test in assembly := {},
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case _ => MergeStrategy.first
},
assemblyShadeRules in assembly := Seq(
ShadeRule.rename("fastparse.**" -> "kamon.apm.shaded.@0").inAll
,ShadeRule.rename("fansi.**" -> "kamon.apm.shaded.@0").inAll
,ShadeRule.rename("sourcecode.**" -> "kamon.apm.shaded.@0").inAll
,ShadeRule.rename("com.google.protobuf.**" -> "kamon.apm.shaded.@0").inAll
,ShadeRule.rename("google.protobuf.**" -> "kamon.apm.shaded.@0").inAll
,ShadeRule.rename("okhttp3.**" -> "kamon.apm.shaded.@0").inAll
,ShadeRule.rename("okio.**" -> "kamon.apm.shaded.@0").inAll
,ShadeRule.rename("kamino.**" -> "kamon.apm.shaded.@0").inAll
),
libraryDependencies ++= Seq(
kamonCore % "provided",
"com.google.protobuf" % "protobuf-java" % "3.8.0",
"com.squareup.okhttp3" % "okhttp" % "3.9.1",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test",
"org.scalatest" %% "scalatest" % "3.0.8" % "test",
"com.typesafe.akka" %% "akka-http" % "10.1.8" % "test",
"com.typesafe.akka" %% "akka-stream" % "2.5.23" % "test",
"com.typesafe.akka" %% "akka-testkit" % "2.5.23" % "test"
)
)
lazy val publishing = project
.settings(
moduleName := "kamon-apm-reporter",
crossScalaVersions := Seq("2.11.12", "2.12.8", "2.13.0"),
packageBin in Compile := (packageBin in (reporter, Compile)).value,
packageSrc in Compile := (packageSrc in (reporter, Compile)).value,
libraryDependencies += kamonCore
)