opentelemetry-java-instrume.../instrumentation/vertx/vertx-web-3.0/javaagent/build.gradle.kts

66 lines
1.7 KiB
Plaintext

plugins {
id("otel.javaagent-instrumentation")
}
muzzle {
pass {
group.set("io.vertx")
module.set("vertx-web")
versions.set("[3.0.0,)")
assertInverse.set(true)
}
}
dependencies {
compileOnly("io.vertx:vertx-web:3.0.0")
// We need both version as different versions of Vert.x use different versions of Netty
testInstrumentation(project(":instrumentation:netty:netty-4.0:javaagent"))
testInstrumentation(project(":instrumentation:netty:netty-4.1:javaagent"))
testInstrumentation(project(":instrumentation:jdbc:javaagent"))
}
testing {
suites {
val version3Test by registering(JvmTestSuite::class) {
dependencies {
implementation(project(":instrumentation:vertx:vertx-web-3.0:testing"))
implementation("io.vertx:vertx-web:3.0.0")
implementation("io.vertx:vertx-jdbc-client:3.0.0")
implementation("io.vertx:vertx-codegen:3.0.0")
implementation("io.vertx:vertx-docgen:3.0.0")
}
}
val latestDepTest by registering(JvmTestSuite::class) {
dependencies {
implementation(project(":instrumentation:vertx:vertx-web-3.0:testing"))
implementation("io.vertx:vertx-web:latest.release")
implementation("io.vertx:vertx-jdbc-client:latest.release")
implementation("io.vertx:vertx-codegen:latest.release")
}
}
}
}
val testLatestDeps = findProperty("testLatestDeps") as Boolean
tasks {
if (testLatestDeps) {
// disable regular test running and compiling tasks when latest dep test task is run
named("test") {
enabled = false
}
}
named("latestDepTest") {
enabled = testLatestDeps
}
check {
dependsOn(testing.suites)
}
}