opentelemetry-java-instrume.../instrumentation/mongo/mongo-3.1/library/build.gradle.kts

28 lines
650 B
Plaintext

plugins {
id("otel.library-instrumentation")
id("otel.nullaway-conventions")
}
dependencies {
library("org.mongodb:mongo-java-driver:3.1.0")
compileOnly("com.google.auto.value:auto-value-annotations")
annotationProcessor("com.google.auto.value:auto-value")
testImplementation(project(":instrumentation:mongo:mongo-3.1:testing"))
}
tasks {
withType<Test>().configureEach {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
}
val testStableSemconv by registering(Test::class) {
jvmArgs("-Dotel.semconv-stability.opt-in=database")
}
check {
dependsOn(testStableSemconv)
}
}