|
@@ -14,13 +14,16 @@ muzzle {
|
|
}
|
|
}
|
|
|
|
|
|
tasks.withType<Test>().configureEach {
|
|
tasks.withType<Test>().configureEach {
|
|
|
|
+ systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
|
|
// TODO run tests both with and without experimental span attributes
|
|
// TODO run tests both with and without experimental span attributes
|
|
jvmArgs("-Dotel.instrumentation.reactor.experimental-span-attributes=true")
|
|
jvmArgs("-Dotel.instrumentation.reactor.experimental-span-attributes=true")
|
|
}
|
|
}
|
|
|
|
|
|
dependencies {
|
|
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:reactor:reactor-3.1:library"))
|
|
- library("io.projectreactor:reactor-core:3.1.0.RELEASE")
|
|
|
|
|
|
|
|
implementation(project(":instrumentation:opentelemetry-api:opentelemetry-api-1.0:javaagent"))
|
|
implementation(project(":instrumentation:opentelemetry-api:opentelemetry-api-1.0:javaagent"))
|
|
|
|
|
|
@@ -30,14 +33,12 @@ dependencies {
|
|
|
|
|
|
testInstrumentation(project(":instrumentation:opentelemetry-extension-annotations-1.0:javaagent"))
|
|
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")
|
|
testLibrary("io.projectreactor:reactor-test:3.1.0.RELEASE")
|
|
testImplementation(project(":instrumentation-annotations-support-testing"))
|
|
testImplementation(project(":instrumentation-annotations-support-testing"))
|
|
testImplementation(project(":instrumentation:reactor:reactor-3.1:testing"))
|
|
testImplementation(project(":instrumentation:reactor:reactor-3.1:testing"))
|
|
testImplementation(project(":instrumentation-annotations"))
|
|
testImplementation(project(":instrumentation-annotations"))
|
|
testImplementation("io.opentelemetry:opentelemetry-extension-annotations")
|
|
testImplementation("io.opentelemetry:opentelemetry-extension-annotations")
|
|
-
|
|
|
|
- latestDepTestLibrary("io.projectreactor:reactor-core:3.4.+")
|
|
|
|
- latestDepTestLibrary("io.projectreactor:reactor-test:3.4.+")
|
|
|
|
}
|
|
}
|
|
|
|
|
|
testing {
|
|
testing {
|
|
@@ -46,7 +47,11 @@ testing {
|
|
dependencies {
|
|
dependencies {
|
|
implementation(project(":instrumentation:reactor:reactor-3.1:library"))
|
|
implementation(project(":instrumentation:reactor:reactor-3.1:library"))
|
|
implementation(project(":instrumentation-annotations"))
|
|
implementation(project(":instrumentation-annotations"))
|
|
- implementation("io.projectreactor:reactor-test:3.1.0.RELEASE")
|
|
|
|
|
|
+ if (findProperty("testLatestDeps") as Boolean) {
|
|
|
|
+ implementation("io.projectreactor:reactor-test:+")
|
|
|
|
+ } else {
|
|
|
|
+ implementation("io.projectreactor:reactor-test:3.1.0.RELEASE")
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|