build.gradle.kts 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. name.set("webflux_5.0.0+_with_netty_0.8.0")
  7. group.set("org.springframework")
  8. module.set("spring-webflux")
  9. versions.set("[5.0.0.RELEASE,)")
  10. assertInverse.set(true)
  11. extraDependency("io.projectreactor.netty:reactor-netty:0.8.0.RELEASE")
  12. }
  13. pass {
  14. name.set("webflux_5.0.0_with_ipc_0.7.0")
  15. group.set("org.springframework")
  16. module.set("spring-webflux")
  17. versions.set("[5.0.0.RELEASE,)")
  18. assertInverse.set(true)
  19. extraDependency("io.projectreactor.ipc:reactor-netty:0.7.0.RELEASE")
  20. }
  21. pass {
  22. name.set("netty_0.8.0+_with_spring-webflux:5.1.0")
  23. group.set("io.projectreactor.netty")
  24. module.set("reactor-netty")
  25. versions.set("[0.8.0.RELEASE,)")
  26. extraDependency("org.springframework:spring-webflux:5.1.0.RELEASE")
  27. }
  28. pass {
  29. name.set("ipc_0.7.0+_with_spring-webflux:5.0.0")
  30. group.set("io.projectreactor.ipc")
  31. module.set("reactor-netty")
  32. versions.set("[0.7.0.RELEASE,)")
  33. extraDependency("org.springframework:spring-webflux:5.0.0.RELEASE")
  34. }
  35. }
  36. dependencies {
  37. implementation(project(":instrumentation:spring:spring-webflux-5.0:library"))
  38. compileOnly("org.springframework:spring-webflux:5.0.0.RELEASE")
  39. compileOnly("io.projectreactor.ipc:reactor-netty:0.7.0.RELEASE")
  40. testInstrumentation(project(":instrumentation:netty:netty-4.1:javaagent"))
  41. testInstrumentation(project(":instrumentation:reactor:reactor-3.1:javaagent"))
  42. testInstrumentation(project(":instrumentation:reactor:reactor-netty:reactor-netty-1.0:javaagent"))
  43. // Compile with both old and new netty packages since our test references both for old and
  44. // latest dep tests.
  45. testCompileOnly("io.projectreactor.ipc:reactor-netty:0.7.0.RELEASE")
  46. testCompileOnly("io.projectreactor.netty:reactor-netty-http:1.0.7")
  47. testLibrary("org.springframework.boot:spring-boot-starter-webflux:2.0.0.RELEASE")
  48. testLibrary("org.springframework.boot:spring-boot-starter-test:2.0.0.RELEASE")
  49. testLibrary("org.springframework.boot:spring-boot-starter-reactor-netty:2.0.0.RELEASE")
  50. testImplementation("org.spockframework:spock-spring:1.1-groovy-2.4")
  51. }
  52. tasks.withType<Test>().configureEach {
  53. // TODO run tests both with and without experimental span attributes
  54. jvmArgs("-Dotel.instrumentation.spring-webflux.experimental-span-attributes=true")
  55. // required on jdk17
  56. jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
  57. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  58. systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
  59. }