build.gradle.kts 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. tasks {
  49. if (findProperty("testLatestDeps") as Boolean) {
  50. // disable regular test running and compiling tasks when latest dep test task is run
  51. named("test") {
  52. enabled = false
  53. }
  54. named("compileTestGroovy") {
  55. enabled = false
  56. }
  57. check {
  58. dependsOn(testing.suites)
  59. }
  60. val testStableSemconv by registering(Test::class) {
  61. jvmArgs("-Dotel.semconv-stability.opt-in=http")
  62. }
  63. check {
  64. dependsOn(testStableSemconv)
  65. }
  66. }
  67. }