build.gradle.kts 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("io.vertx")
  7. module.set("vertx-rx-java2")
  8. versions.set("[3.5.0,)")
  9. }
  10. }
  11. // The first Vert.x version that uses rx-java 2
  12. val vertxVersion = "3.5.0"
  13. dependencies {
  14. compileOnly("io.vertx:vertx-web:$vertxVersion")
  15. compileOnly("io.vertx:vertx-rx-java2:$vertxVersion")
  16. testInstrumentation(project(":instrumentation:jdbc:javaagent"))
  17. testInstrumentation(project(":instrumentation:netty:netty-4.1:javaagent"))
  18. testInstrumentation(project(":instrumentation:rxjava:rxjava-2.0:javaagent"))
  19. testInstrumentation(project(":instrumentation:vertx:vertx-http-client:vertx-http-client-3.0:javaagent"))
  20. testInstrumentation(project(":instrumentation:vertx:vertx-http-client:vertx-http-client-4.0:javaagent"))
  21. testInstrumentation(project(":instrumentation:vertx:vertx-web-3.0:javaagent"))
  22. }
  23. testing {
  24. suites {
  25. val version35Test by registering(JvmTestSuite::class) {
  26. dependencies {
  27. implementation("org.hsqldb:hsqldb:2.3.4")
  28. compileOnly("io.vertx:vertx-codegen:$vertxVersion")
  29. implementation("io.vertx:vertx-web:$vertxVersion")
  30. implementation("io.vertx:vertx-rx-java2:$vertxVersion")
  31. implementation("io.vertx:vertx-web-client:$vertxVersion")
  32. implementation("io.vertx:vertx-jdbc-client:$vertxVersion")
  33. implementation("io.vertx:vertx-circuit-breaker:$vertxVersion")
  34. }
  35. }
  36. val latestDepTest by registering(JvmTestSuite::class) {
  37. dependencies {
  38. implementation("org.hsqldb:hsqldb:2.3.4")
  39. implementation("io.vertx:vertx-web:+")
  40. implementation("io.vertx:vertx-rx-java2:+")
  41. implementation("io.vertx:vertx-web-client:+")
  42. implementation("io.vertx:vertx-jdbc-client:+")
  43. implementation("io.vertx:vertx-circuit-breaker:+")
  44. }
  45. }
  46. }
  47. }
  48. val testLatestDeps = findProperty("testLatestDeps") as Boolean
  49. tasks {
  50. if (testLatestDeps) {
  51. // disable regular test running and compiling tasks when latest dep test task is run
  52. named("test") {
  53. enabled = false
  54. }
  55. named("compileTestGroovy") {
  56. enabled = false
  57. }
  58. }
  59. named("latestDepTest") {
  60. enabled = testLatestDeps
  61. }
  62. check {
  63. dependsOn(testing.suites)
  64. }
  65. }