description = 'OpenTelemetry Javaagent testing commons' group = 'io.opentelemetry.javaagent' apply from: "$rootDir/gradle/java.gradle" apply from: "$rootDir/gradle/publish.gradle" dependencies { api deps.groovy api deps.spock implementation deps.junitApi api deps.opentelemetryApi api deps.opentelemetrySemConv api deps.opentelemetrySdk api deps.opentelemetrySdkMetrics api deps.opentelemetrySdkTesting implementation(deps.opentelemetryProto) { // Only need the proto, not gRPC. exclude group: 'io.grpc' } implementation deps.bytebuddy implementation deps.bytebuddyagent implementation deps.slf4j implementation deps.testLogging implementation deps.opentelemetryExtAnnotations implementation project(':instrumentation-api') api "com.squareup.okhttp3:okhttp:4.9.0" api "com.squareup.okhttp3:logging-interceptor:4.9.0" //TODO replace with Servlet API? implementation "org.eclipse.jetty:jetty-server:8.0.0.v20110901" annotationProcessor deps.autoservice compileOnly deps.autoservice testImplementation deps.assertj testImplementation project(':javaagent-api') testImplementation project(':javaagent-tooling') testImplementation project(':javaagent-bootstrap') testImplementation project(':javaagent-extension-api') testImplementation project(':instrumentation:external-annotations:javaagent') // We have autoservices defined in test subtree, looks like we need this to be able to properly rebuild this testAnnotationProcessor deps.autoservice testCompileOnly deps.autoservice } javadoc.enabled = false