52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
plugins {
|
|
id("otel.javaagent-instrumentation")
|
|
}
|
|
|
|
muzzle {
|
|
pass {
|
|
coreJdk()
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
bootstrap(project(":instrumentation:executors:bootstrap"))
|
|
|
|
testImplementation(project(":instrumentation:executors:testing"))
|
|
}
|
|
|
|
testing {
|
|
suites {
|
|
// CompletableFuture behaves differently if ForkJoinPool has no parallelism
|
|
val testNoParallelism by registering(JvmTestSuite::class) {
|
|
sources {
|
|
java {
|
|
setSrcDirs(listOf("src/test/java"))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":instrumentation:executors:testing"))
|
|
}
|
|
|
|
targets {
|
|
all {
|
|
testTask.configure {
|
|
systemProperty("java.util.concurrent.ForkJoinPool.common.parallelism", 1)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
withType<Test>().configureEach {
|
|
jvmArgs("-Dotel.instrumentation.executors.include=io.opentelemetry.javaagent.instrumentation.executors.ExecutorInstrumentationTest\$CustomThreadPoolExecutor")
|
|
jvmArgs("-Djava.awt.headless=true")
|
|
}
|
|
|
|
check {
|
|
dependsOn(testing.suites)
|
|
}
|
|
}
|