build.gradle.kts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("io.vertx")
  7. module.set("vertx-core")
  8. versions.set("[3.0.0,4.0.0)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. library("io.vertx:vertx-core:3.0.0")
  14. // vertx-codegen and vertx-docgen dependencies are needed for Xlint's annotation checking
  15. library("io.vertx:vertx-codegen:3.0.0")
  16. testLibrary("io.vertx:vertx-docgen:3.0.0")
  17. compileOnly("com.google.auto.value:auto-value-annotations")
  18. annotationProcessor("com.google.auto.value:auto-value")
  19. implementation(project(":instrumentation:vertx:vertx-http-client:vertx-http-client-common:javaagent"))
  20. // We need both version as different versions of Vert.x use different versions of Netty
  21. testInstrumentation(project(":instrumentation:netty:netty-4.0:javaagent"))
  22. testInstrumentation(project(":instrumentation:netty:netty-4.1:javaagent"))
  23. // Vert.x 4.0 is incompatible with our tests.
  24. // 3.9.7 Requires Netty 4.1.60, no other version works with it.
  25. latestDepTestLibrary(enforcedPlatform("io.netty:netty-bom:4.1.60.Final"))
  26. latestDepTestLibrary("io.vertx:vertx-core:3.+")
  27. latestDepTestLibrary("io.vertx:vertx-codegen:3.+")
  28. latestDepTestLibrary("io.vertx:vertx-docgen:3.+")
  29. }
  30. tasks {
  31. test {
  32. systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
  33. }
  34. }