31 lines
964 B
Plaintext
31 lines
964 B
Plaintext
plugins {
|
|
id("com.gradleup.shadow")
|
|
id("otel.java-conventions")
|
|
}
|
|
|
|
group = "io.opentelemetry.javaagent.instrumentation"
|
|
|
|
dependencies {
|
|
// this is the last good version that works with indy build
|
|
// update to 1.49 or latest once https://github.com/Azure/azure-sdk-for-java/pull/42586 is released.
|
|
implementation("com.azure:azure-core-tracing-opentelemetry:1.0.0-beta.45")
|
|
}
|
|
|
|
tasks {
|
|
shadowJar {
|
|
exclude("META-INF/services/*")
|
|
|
|
dependencies {
|
|
// including only azure-core-tracing-opentelemetry excludes its transitive dependencies
|
|
include(dependency("com.azure:azure-core-tracing-opentelemetry"))
|
|
}
|
|
relocate("com.azure.core.tracing.opentelemetry", "io.opentelemetry.javaagent.instrumentation.azurecore.v1_36.shaded.com.azure.core.tracing.opentelemetry")
|
|
}
|
|
|
|
val extractShadowJar by registering(Copy::class) {
|
|
dependsOn(shadowJar)
|
|
from(zipTree(shadowJar.get().archiveFile))
|
|
into("build/extracted/shadow")
|
|
}
|
|
}
|