-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
65 lines (54 loc) · 1.66 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
65
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)
}
}