-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
36 lines (31 loc) · 856 Bytes
/
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
plugins {
id("otel.library-instrumentation")
id("otel.nullaway-conventions")
id("otel.animalsniffer-conventions")
}
dependencies {
library("com.squareup.okhttp3:okhttp:3.0.0")
testImplementation(project(":instrumentation:okhttp:okhttp-3.0:testing"))
}
val testLatestDeps = findProperty("testLatestDeps") as Boolean
testing {
suites {
val http2Test by registering(JvmTestSuite::class) {
dependencies {
implementation(project())
if (testLatestDeps) {
implementation("com.squareup.okhttp3:okhttp:+")
compileOnly("com.google.android:annotations:4.1.1.4")
} else {
implementation("com.squareup.okhttp3:okhttp:3.11.0")
}
implementation(project(":instrumentation:okhttp:okhttp-3.0:testing"))
}
}
}
}
tasks {
check {
dependsOn(testing.suites)
}
}