-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
build.gradle
62 lines (55 loc) · 1.8 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
53
54
55
56
57
58
59
60
61
62
plugins {
id "java-library"
id "maven-publish"
id "com.google.protobuf"
id "jacoco"
id "ru.vyarus.animalsniffer"
}
description = "gRPC: RouteLookupService Loadbalancing plugin"
tasks.named("jar").configure {
manifest {
attributes('Automatic-Module-Name': 'io.grpc.rls')
}
}
dependencies {
implementation project(':grpc-util'),
project(':grpc-core'),
project(':grpc-protobuf'),
project(':grpc-stub'),
libraries.auto.value.annotations,
libraries.guava
annotationProcessor libraries.auto.value
compileOnly libraries.javax.annotation
testImplementation libraries.truth,
project(':grpc-grpclb'),
project(':grpc-inprocess'),
project(':grpc-testing'),
project(':grpc-testing-proto'),
testFixtures(project(':grpc-api')),
testFixtures(project(':grpc-core'))
signature libraries.signature.java
}
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 {
// Do not publish javadoc since currently there is no public API.
failOnError false // no public or protected classes found to document
exclude 'io/grpc/lookup/v1/**'
exclude 'io/grpc/rls/*Provider.java'
exclude 'io/grpc/rls/internal/**'
exclude 'io/grpc/rls/Internal*'
}
tasks.named("jacocoTestReport").configure {
classDirectories.from = sourceSets.main.output.collect {
fileTree(dir: it, exclude: ['**/io/grpc/lookup/**'])
}
}
configureProtoCompilation()