22 lines
586 B
Groovy
22 lines
586 B
Groovy
plugins {
|
|
id "com.github.johnrengelman.shadow"
|
|
}
|
|
|
|
apply from: "$rootDir/gradle/java.gradle"
|
|
|
|
dependencies {
|
|
implementation deps.opentelemetryApi
|
|
implementation deps.opentelemetrySdk
|
|
implementation deps.opentelemetryContext
|
|
}
|
|
|
|
// OpenTelemetry API (and SDK) shaded so that it can be used (and tested) in
|
|
// instrumentation of OpenTelemetry API itself, and then its usage can be unshaded after
|
|
// OpenTelemetry API is shaded (see more explanation in opentelemetry-api-1.0.gradle)
|
|
shadowJar {
|
|
|
|
mergeServiceFiles()
|
|
|
|
relocate "io.opentelemetry", "application.io.opentelemetry"
|
|
}
|