build.gradle.kts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. plugins {
  2. id("otel.java-conventions")
  3. id("otel.publish-conventions")
  4. }
  5. description = "OpenTelemetry Javaagent testing commons"
  6. group = "io.opentelemetry.javaagent"
  7. sourceSets {
  8. main {
  9. val armeriaShadedDeps = project(":testing:armeria-shaded-for-testing")
  10. output.dir(armeriaShadedDeps.file("build/extracted/shadow"), "builtBy" to ":testing:armeria-shaded-for-testing:extractShadowJar")
  11. }
  12. }
  13. dependencies {
  14. api("org.codehaus.groovy:groovy-all")
  15. api("org.spockframework:spock-core")
  16. implementation("org.junit.jupiter:junit-jupiter-api")
  17. api("io.opentelemetry:opentelemetry-api")
  18. api("io.opentelemetry:opentelemetry-semconv")
  19. api("io.opentelemetry:opentelemetry-sdk")
  20. api("io.opentelemetry:opentelemetry-sdk-metrics")
  21. api("io.opentelemetry:opentelemetry-sdk-testing")
  22. api("org.assertj:assertj-core")
  23. compileOnly(project(path = ":testing:armeria-shaded-for-testing", configuration = "shadow"))
  24. implementation("io.opentelemetry:opentelemetry-proto") {
  25. // Only need the proto, not gRPC.
  26. exclude("io.grpc")
  27. }
  28. implementation("com.google.guava:guava")
  29. implementation("net.bytebuddy:byte-buddy")
  30. implementation("net.bytebuddy:byte-buddy-agent")
  31. implementation("org.slf4j:slf4j-api")
  32. implementation("ch.qos.logback:logback-classic")
  33. implementation("org.slf4j:log4j-over-slf4j")
  34. implementation("org.slf4j:jcl-over-slf4j")
  35. implementation("org.slf4j:jul-to-slf4j")
  36. implementation("io.opentelemetry:opentelemetry-extension-annotations")
  37. implementation("io.opentelemetry:opentelemetry-exporter-logging")
  38. implementation(project(":instrumentation-api"))
  39. annotationProcessor("com.google.auto.service:auto-service")
  40. compileOnly("com.google.auto.service:auto-service")
  41. testImplementation(project(":javaagent-instrumentation-api"))
  42. testImplementation(project(":javaagent-tooling"))
  43. testImplementation(project(":javaagent-bootstrap"))
  44. testImplementation(project(":javaagent-extension-api"))
  45. testImplementation(project(":instrumentation:external-annotations:javaagent"))
  46. // We have autoservices defined in test subtree, looks like we need this to be able to properly rebuild this
  47. testAnnotationProcessor("com.google.auto.service:auto-service")
  48. testCompileOnly("com.google.auto.service:auto-service")
  49. }
  50. tasks {
  51. javadoc {
  52. enabled = false
  53. }
  54. }