build.gradle.kts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. library("org.springframework:spring-webflux:5.3.0")
  6. implementation(project(":instrumentation:reactor:reactor-3.1:library"))
  7. compileOnly("io.projectreactor.ipc:reactor-netty:0.7.0.RELEASE")
  8. testImplementation(project(":instrumentation:spring:spring-webflux:spring-webflux-5.3:testing"))
  9. testLibrary("org.springframework.boot:spring-boot-starter-webflux:2.4.0")
  10. testLibrary("org.springframework.boot:spring-boot-starter-test:2.4.0")
  11. testLibrary("org.springframework.boot:spring-boot-starter-reactor-netty:2.4.0")
  12. }
  13. val latestDepTest = findProperty("testLatestDeps") as Boolean
  14. // spring 6 (which spring-kafka 3.+ uses) requires java 17
  15. if (latestDepTest) {
  16. otelJava {
  17. minJavaVersionSupported.set(JavaVersion.VERSION_17)
  18. }
  19. }
  20. if (!latestDepTest) {
  21. // Spring Boot 2.x requires StaticLoggerBinder which is removed in logback-classic 1.3
  22. configurations.testRuntimeClasspath {
  23. resolutionStrategy {
  24. force("ch.qos.logback:logback-classic:1.2.3")
  25. }
  26. }
  27. }