build.gradle.kts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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("[6.4,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. val versions: Map<String, String> by project
  18. dependencies {
  19. library("org.elasticsearch.client:elasticsearch-rest-client:6.4.0")
  20. implementation(project(":instrumentation:elasticsearch:elasticsearch-rest-common:library"))
  21. testInstrumentation(project(":instrumentation:apache-httpclient:apache-httpclient-4.0:javaagent"))
  22. testInstrumentation(project(":instrumentation:apache-httpasyncclient-4.1:javaagent"))
  23. // TODO: review the following claim, we are not using embedded ES anymore
  24. // Netty is used, but it adds complexity to the tests since we're using embedded ES.
  25. // testInstrumentation(project(":instrumentation:netty:netty-4.1:javaagent"))
  26. testImplementation("org.apache.logging.log4j:log4j-core:2.11.0")
  27. testImplementation("org.apache.logging.log4j:log4j-api:2.11.0")
  28. testImplementation("org.testcontainers:elasticsearch:${versions["org.testcontainers"]}")
  29. testLibrary("org.elasticsearch.client:elasticsearch-rest-client:6.4.0")
  30. latestDepTestLibrary("org.elasticsearch.client:elasticsearch-rest-client:6.+")
  31. }
  32. tasks {
  33. named<Test>("test") {
  34. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].getService())
  35. }
  36. }