aboutsummaryrefslogtreecommitdiff
path: root/opentelemetry/build.gradle
blob: 1fb8180a2ce22d295182ef55426a514aab84ea0b (plain)
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
plugins {
    id "java-library"
}

description = 'gRPC: OpenTelemetry'

dependencies {
    api project(':grpc-api')
    implementation libraries.guava,
            project(':grpc-core'),
            libraries.opentelemetry.api,
            libraries.auto.value.annotations

    testImplementation testFixtures(project(':grpc-core')),
            project(':grpc-testing'),
            libraries.opentelemetry.sdk.testing,
            "org.assertj:assertj-core:3.24.2"

    annotationProcessor libraries.auto.value
}

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/.*",
            "|")
}