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().configureEach { jvmArgs("-Dotel.instrumentation.executors.include=io.opentelemetry.javaagent.instrumentation.javaconcurrent.ExecutorInstrumentationTest\$CustomThreadPoolExecutor") jvmArgs("-Djava.awt.headless=true") } check { dependsOn(testing.suites) } }