Skip to content

Commit

Permalink
Publish fat jar along with the other artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
lgajowy committed Apr 12, 2022
1 parent 6adb55c commit b0acf7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ Add this entry to your `application.conf`:

### OpenTelemetry Extension:

Download the latest OTEL Extension jar from https://github.com/ScalaConsultants/mesmer/releases and add a parameter when
running your JVM:
Download the latest OTEL Extension fat jar from Maven repository and add a parameter when running your JVM:

```
java -javaagent:opentelemetry-javaagent110.jar \ -- this is the OpenTelemetry Agent
-Dotel.javaagent.extensions=mesmer-otel-extension.jar -- this is our OTEL Agent Extension
-Dotel.javaagent.extensions=mesmer-otel-extension-assembly.jar -- this is our OTEL Agent Extension fat jar
```

### Exporter:
Expand Down
13 changes: 10 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Dependencies._
import sbt.Package.{ MainClass, ManifestAttributes }


lazy val scala213 = "2.13"

inThisBuild(
List(
Expand Down Expand Up @@ -92,7 +94,7 @@ lazy val otelExtension = (project in file("otel-extension"))
scalatest
},
assembly / test := {},
assembly / assemblyJarName := "mesmer-otel-extension.jar",
assembly / assemblyJarName := s"${name.value}_${scalaBinaryVersion.value}-${version.value}-assembly.jar",
assemblyMergeStrategySettings,
Test / fork := true,
Test / parallelExecution := true,
Expand All @@ -101,7 +103,12 @@ lazy val otelExtension = (project in file("otel-extension"))
Tests.Group(name = test.name, tests = Seq(test), runPolicy = group.runPolicy)
}
}),
Test / testOnly / testGrouping := (Test / testGrouping).value
Test / testOnly / testGrouping := (Test / testGrouping).value,
assembly / artifact := {
val art = (assembly / artifact).value
art.withClassifier(Some("assembly"))
},
addArtifact(assembly / artifact, assembly)
)
.dependsOn(core % "provided->compile;test->test;compile->compile")

Expand Down

0 comments on commit b0acf7b

Please sign in to comment.