-
Notifications
You must be signed in to change notification settings - Fork 813
/
build.gradle.kts
82 lines (69 loc) · 2.97 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
plugins {
id("otel.java-conventions")
id("otel.publish-conventions")
}
description = "OpenTelemetry Javaagent testing commons"
group = "io.opentelemetry.javaagent"
sourceSets {
main {
val armeriaShadedDeps = project(":testing:armeria-shaded-for-testing")
output.dir(armeriaShadedDeps.file("build/extracted/shadow"), "builtBy" to ":testing:armeria-shaded-for-testing:extractShadowJar")
}
}
dependencies {
api("org.apache.groovy:groovy")
api("org.apache.groovy:groovy-json")
api("org.spockframework:spock-core") {
// exclude optional dependencies
exclude(group = "cglib", module = "cglib-nodep")
exclude(group = "net.bytebuddy", module = "byte-buddy")
exclude(group = "org.junit.platform", module = "junit-platform-testkit")
exclude(group = "org.jetbrains", module = "annotations")
exclude(group = "org.objenesis", module = "objenesis")
exclude(group = "org.ow2.asm", module = "asm")
}
api("org.spockframework:spock-junit4") {
// spock-core is already added as dependency
// exclude it here to avoid pulling in optional dependencies
exclude(group = "org.spockframework", module = "spock-core")
}
api("org.junit.jupiter:junit-jupiter-api")
api("org.junit.jupiter:junit-jupiter-params")
api("io.opentelemetry:opentelemetry-api")
api("io.opentelemetry:opentelemetry-sdk")
api("io.opentelemetry:opentelemetry-sdk-testing")
api("io.opentelemetry.semconv:opentelemetry-semconv-incubating")
api(project(":instrumentation-api"))
api("org.assertj:assertj-core")
// Needs to be api dependency due to Spock restriction.
api("org.awaitility:awaitility")
api("com.google.guava:guava")
api("org.mockito:mockito-core")
api("org.slf4j:slf4j-api")
compileOnly(project(":testing:armeria-shaded-for-testing", configuration = "shadow"))
compileOnly(project(":javaagent-bootstrap"))
compileOnly("com.google.auto.value:auto-value-annotations")
annotationProcessor("com.google.auto.value:auto-value")
implementation("io.opentelemetry.proto:opentelemetry-proto")
implementation("net.bytebuddy:byte-buddy")
implementation("ch.qos.logback:logback-classic")
implementation("org.slf4j:log4j-over-slf4j")
implementation("org.slf4j:jcl-over-slf4j")
implementation("org.slf4j:jul-to-slf4j")
implementation("io.opentelemetry:opentelemetry-exporter-logging")
api(project(":instrumentation-api-incubator"))
annotationProcessor("com.google.auto.service:auto-service")
compileOnly("com.google.auto.service:auto-service")
testImplementation(project(":javaagent-tooling"))
testImplementation(project(":javaagent-bootstrap"))
testImplementation(project(":javaagent-extension-api"))
testImplementation(project(":instrumentation:external-annotations:javaagent"))
// We have autoservices defined in test subtree, looks like we need this to be able to properly rebuild this
testAnnotationProcessor("com.google.auto.service:auto-service")
testCompileOnly("com.google.auto.service:auto-service")
}
tasks {
javadoc {
enabled = false
}
}