build.gradle.kts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("io.projectreactor")
  7. module.set("reactor-core")
  8. versions.set("[3.1.0.RELEASE,)")
  9. extraDependency("io.opentelemetry:opentelemetry-api:1.0.0")
  10. assertInverse.set(true)
  11. excludeInstrumentationName("opentelemetry-api")
  12. }
  13. }
  14. tasks.withType<Test>().configureEach {
  15. // TODO run tests both with and without experimental span attributes
  16. jvmArgs("-Dotel.instrumentation.reactor.experimental-span-attributes=true")
  17. }
  18. dependencies {
  19. implementation(project(":instrumentation:reactor:reactor-3.1:library"))
  20. library("io.projectreactor:reactor-core:3.1.0.RELEASE")
  21. implementation(project(":instrumentation:opentelemetry-api:opentelemetry-api-1.0:javaagent"))
  22. compileOnly(project(":javaagent-tooling"))
  23. compileOnly(project(":instrumentation-annotations-support"))
  24. compileOnly(project(":opentelemetry-api-shaded-for-instrumenting", configuration = "shadow"))
  25. testInstrumentation(project(":instrumentation:opentelemetry-extension-annotations-1.0:javaagent"))
  26. testLibrary("io.projectreactor:reactor-test:3.1.0.RELEASE")
  27. testImplementation(project(":instrumentation-annotations-support-testing"))
  28. testImplementation(project(":instrumentation:reactor:reactor-3.1:testing"))
  29. testImplementation(project(":instrumentation-annotations"))
  30. testImplementation("io.opentelemetry:opentelemetry-extension-annotations")
  31. }
  32. testing {
  33. suites {
  34. val testInitialization by registering(JvmTestSuite::class) {
  35. dependencies {
  36. implementation(project(":instrumentation:reactor:reactor-3.1:library"))
  37. implementation(project(":instrumentation-annotations"))
  38. implementation("io.projectreactor:reactor-test:3.1.0.RELEASE")
  39. }
  40. }
  41. }
  42. }
  43. tasks {
  44. check {
  45. dependsOn(testing.suites)
  46. }
  47. }