12345678910111213141516171819202122232425262728293031323334353637 |
- plugins {
- id("otel.library-instrumentation")
- }
- dependencies {
- library("org.springframework:spring-webflux:5.3.0")
- implementation(project(":instrumentation:reactor:reactor-3.1:library"))
- compileOnly("io.projectreactor.ipc:reactor-netty:0.7.0.RELEASE")
- testImplementation(project(":instrumentation:spring:spring-webflux:spring-webflux-5.3:testing"))
- testLibrary("org.springframework.boot:spring-boot-starter-webflux:2.4.0")
- testLibrary("org.springframework.boot:spring-boot-starter-test:2.4.0")
- testLibrary("org.springframework.boot:spring-boot-starter-reactor-netty:2.4.0")
- // can be remove after starter is update to depend on spring 6.1
- latestDepTestLibrary("org.springframework:spring-context:+")
- }
- val latestDepTest = findProperty("testLatestDeps") as Boolean
- // spring 6 (which spring-kafka 3.+ uses) requires java 17
- if (latestDepTest) {
- otelJava {
- minJavaVersionSupported.set(JavaVersion.VERSION_17)
- }
- }
- if (!latestDepTest) {
- // Spring Boot 2.x requires StaticLoggerBinder which is removed in logback-classic 1.3
- configurations.testRuntimeClasspath {
- resolutionStrategy {
- force("ch.qos.logback:logback-classic:1.2.3")
- }
- }
- }
|