32 lines
667 B
Plaintext
32 lines
667 B
Plaintext
plugins {
|
|
id("otel.library-instrumentation")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("org.springframework:spring-web:3.1.0.RELEASE")
|
|
|
|
testLibrary("org.springframework:spring-web:3.1.0.RELEASE")
|
|
|
|
testImplementation(project(":testing-common"))
|
|
testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
|
|
}
|
|
|
|
tasks {
|
|
val testStableSemconv by registering(Test::class) {
|
|
jvmArgs("-Dotel.semconv-stability.opt-in=http")
|
|
}
|
|
|
|
check {
|
|
dependsOn(testStableSemconv)
|
|
}
|
|
}
|
|
|
|
val latestDepTest = findProperty("testLatestDeps") as Boolean
|
|
|
|
// spring 6 requires java 17
|
|
if (latestDepTest) {
|
|
otelJava {
|
|
minJavaVersionSupported.set(JavaVersion.VERSION_17)
|
|
}
|
|
}
|