build.gradle.kts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. // can be remove after starter is update to depend on spring 6.1
  13. latestDepTestLibrary("org.springframework:spring-context:+")
  14. }
  15. val latestDepTest = findProperty("testLatestDeps") as Boolean
  16. // spring 6 (which spring-kafka 3.+ uses) requires java 17
  17. if (latestDepTest) {
  18. otelJava {
  19. minJavaVersionSupported.set(JavaVersion.VERSION_17)
  20. }
  21. }
  22. if (!latestDepTest) {
  23. // Spring Boot 2.x requires StaticLoggerBinder which is removed in logback-classic 1.3
  24. configurations.testRuntimeClasspath {
  25. resolutionStrategy {
  26. force("ch.qos.logback:logback-classic:1.2.3")
  27. }
  28. }
  29. }