-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
64 lines (55 loc) · 2.19 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
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id("otel.javaagent-instrumentation")
}
muzzle {
pass {
group.set("io.projectreactor")
module.set("reactor-core")
versions.set("[3.1.0.RELEASE,)")
extraDependency("io.opentelemetry:opentelemetry-api:1.0.0")
assertInverse.set(true)
excludeInstrumentationName("opentelemetry-api")
}
}
tasks.withType<Test>().configureEach {
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
// TODO run tests both with and without experimental span attributes
jvmArgs("-Dotel.instrumentation.reactor.experimental-span-attributes=true")
}
dependencies {
// we compile against 3.4.0, so we could use reactor.util.context.ContextView
// instrumentation is tested against 3.1.0.RELEASE
compileOnly("io.projectreactor:reactor-core:3.4.0")
implementation(project(":instrumentation:reactor:reactor-3.1:library"))
implementation(project(":instrumentation:opentelemetry-api:opentelemetry-api-1.0:javaagent"))
compileOnly(project(":javaagent-tooling"))
compileOnly(project(":instrumentation-annotations-support"))
compileOnly(project(":opentelemetry-api-shaded-for-instrumenting", configuration = "shadow"))
testInstrumentation(project(":instrumentation:opentelemetry-extension-annotations-1.0:javaagent"))
testLibrary("io.projectreactor:reactor-core:3.1.0.RELEASE")
testLibrary("io.projectreactor:reactor-test:3.1.0.RELEASE")
testImplementation(project(":instrumentation-annotations-support-testing"))
testImplementation(project(":instrumentation:reactor:reactor-3.1:testing"))
testImplementation(project(":instrumentation-annotations"))
testImplementation("io.opentelemetry:opentelemetry-extension-annotations")
}
testing {
suites {
val testInitialization by registering(JvmTestSuite::class) {
dependencies {
implementation(project(":instrumentation:reactor:reactor-3.1:library"))
implementation(project(":instrumentation-annotations"))
if (findProperty("testLatestDeps") as Boolean) {
implementation("io.projectreactor:reactor-test:+")
} else {
implementation("io.projectreactor:reactor-test:3.1.0.RELEASE")
}
}
}
}
}
tasks {
check {
dependsOn(testing.suites)
}
}