build.gradle.kts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.elasticsearch.client")
  7. module.set("elasticsearch-rest-client")
  8. versions.set("[7.0,)")
  9. assertInverse.set(true)
  10. }
  11. fail {
  12. group.set("org.elasticsearch.client")
  13. module.set("rest")
  14. versions.set("(,)")
  15. }
  16. }
  17. dependencies {
  18. library("org.elasticsearch.client:elasticsearch-rest-client:7.0.0")
  19. implementation(project(":instrumentation:elasticsearch:elasticsearch-rest-common:javaagent"))
  20. testInstrumentation(project(":instrumentation:apache-httpclient:apache-httpclient-4.0:javaagent"))
  21. testInstrumentation(project(":instrumentation:apache-httpasyncclient-4.1:javaagent"))
  22. // TODO: review the following claim, we are not using embedded ES anymore
  23. // Netty is used, but it adds complexity to the tests since we're using embedded ES.
  24. // testInstrumentation(project(":instrumentation:netty:netty-4.1:javaagent"))
  25. testImplementation("com.fasterxml.jackson.core:jackson-databind")
  26. testImplementation("org.testcontainers:elasticsearch")
  27. }
  28. tasks {
  29. test {
  30. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
  31. }
  32. }