-
Notifications
You must be signed in to change notification settings - Fork 791
/
build.gradle.kts
51 lines (41 loc) · 1.53 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
plugins {
id("otel.javaagent-instrumentation")
}
muzzle {
pass {
group.set("org.apache.shenyu")
module.set("shenyu-web")
versions.set("[2.4.0,)")
assertInverse.set(true)
}
}
dependencies {
compileOnly("org.apache.shenyu:shenyu-web:2.4.0")
compileOnly("com.google.auto.value:auto-value-annotations")
annotationProcessor("com.google.auto.value:auto-value")
testLibrary("org.springframework.boot:spring-boot-starter-test:2.0.0.RELEASE")
// based on apache shenyu 2.4.0 official example
testLibrary("org.apache.shenyu:shenyu-spring-boot-starter-gateway:2.4.0") {
exclude("org.codehaus.groovy", "groovy")
}
testImplementation("org.springframework.boot:spring-boot-starter-webflux:2.2.2.RELEASE") {
exclude("org.codehaus.groovy", "groovy")
}
// the latest version of apache shenyu uses spring-boot 2.7
latestDepTestLibrary("org.springframework.boot:spring-boot-starter-test:2.7.+")
testInstrumentation(project(":instrumentation:netty:netty-4.1:javaagent"))
}
tasks.withType<Test>().configureEach {
jvmArgs("-Dotel.instrumentation.apache-shenyu.experimental-span-attributes=true")
// required on jdk17
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
}
configurations.testRuntimeClasspath {
resolutionStrategy {
// requires old logback (and therefore also old slf4j)
force("ch.qos.logback:logback-classic:1.2.11")
force("org.slf4j:slf4j-api:1.7.36")
}
}