forked from open-telemetry/opentelemetry-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (54 loc) · 1.61 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
import ru.vyarus.gradle.plugin.animalsniffer.AnimalSniffer
plugins {
id("otel.java-conventions")
id("otel.publish-conventions")
id("otel.jmh-conventions")
id("otel.animalsniffer-conventions")
}
description = "OpenTelemetry SDK Metrics"
otelJava.moduleName.set("io.opentelemetry.sdk.metrics")
dependencies {
api(project(":api:all"))
api(project(":sdk:common"))
implementation(project(":api:incubator"))
compileOnly("org.codehaus.mojo:animal-sniffer-annotations")
annotationProcessor("com.google.auto.value:auto-value")
testAnnotationProcessor("com.google.auto.value:auto-value")
testImplementation(project(":sdk:testing"))
testImplementation("com.google.guava:guava")
jmh(project(":sdk:trace"))
jmh(project(":sdk:testing"))
}
dependencyCheck {
skipConfigurations.add("debugEnabledTestAnnotationProcessor")
}
testing {
suites {
register<JvmTestSuite>("debugEnabledTest") {
targets {
all {
testTask.configure {
jvmArgs("-Dotel.experimental.sdk.metrics.debug=true")
}
}
}
}
register<JvmTestSuite>("jmhBasedTest") {
dependencies {
implementation("org.openjdk.jmh:jmh-core")
implementation("org.openjdk.jmh:jmh-generator-bytecode")
annotationProcessor("org.openjdk.jmh:jmh-generator-annprocess")
}
}
}
}
tasks {
named<AnimalSniffer>("animalsnifferMain") {
// We cannot use IgnoreJreRequirement since it does not work correctly for fields.
// https://github.com/mojohaus/animal-sniffer/issues/131
exclude("**/concurrent/Jre*Adder*")
}
check {
dependsOn(testing.suites)
}
}