plugins { id("otel.javaagent-instrumentation") } muzzle { pass { group.set("com.graphql-java") module.set("graphql-java") versions.set("[20,)") skip("230521-nf-execution") assertInverse.set(true) } } dependencies { implementation(project(":instrumentation:graphql-java:graphql-java-20.0:library")) implementation(project(":instrumentation:graphql-java:graphql-java-common:library")) library("com.graphql-java:graphql-java:20.0") testInstrumentation(project(":instrumentation:graphql-java:graphql-java-12.0:javaagent")) testImplementation(project(":instrumentation:graphql-java:graphql-java-common:testing")) } tasks { withType().configureEach { jvmArgs("-Dotel.instrumentation.graphql.add-operation-name-to-span-name.enabled=true") systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false") } val testDataFetcher by registering(Test::class) { testClassesDirs = sourceSets.test.get().output.classesDirs classpath = sourceSets.test.get().runtimeClasspath jvmArgs("-Dotel.instrumentation.graphql.data-fetcher.enabled=true") systemProperty("metadataConfig", "otel.instrumentation.graphql.data-fetcher.enabled=true") } check { dependsOn(testDataFetcher) } } if (findProperty("testLatestDeps") as Boolean) { otelJava { minJavaVersionSupported.set(JavaVersion.VERSION_11) } }