-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
build.gradle
52 lines (43 loc) · 1.33 KB
/
build.gradle
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
plugins {
id "java-library"
id "maven-publish"
id "ru.vyarus.animalsniffer"
}
description = 'gRPC: OpenTelemetry'
dependencies {
api project(':grpc-api')
implementation libraries.guava,
project(':grpc-core'),
libraries.opentelemetry.api,
libraries.auto.value.annotations
testImplementation project(':grpc-testing'),
project(':grpc-inprocess'),
testFixtures(project(':grpc-core')),
testFixtures(project(':grpc-api')),
libraries.opentelemetry.sdk.testing,
libraries.assertj.core // opentelemetry.sdk.testing uses compileOnly for assertj
annotationProcessor libraries.auto.value
signature (libraries.signature.java) {
artifact {
extension = "signature"
}
}
}
tasks.named("jar").configure {
manifest {
attributes('Automatic-Module-Name': 'io.grpc.opentelemetry')
}
}
tasks.named("compileJava").configure {
it.options.compilerArgs += [
// only has AutoValue annotation processor
"-Xlint:-processing"
]
appendToProperty(
it.options.errorprone.excludedPaths,
".*/build/generated/sources/annotationProcessor/java/.*",
"|")
}
tasks.named("javadoc").configure {
exclude 'io/grpc/opentelemetry/internal/**'
}