-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
37 lines (29 loc) · 1.16 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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")
}
}
}