-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
Copy pathbuild.gradle
69 lines (60 loc) · 1.99 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
63
64
65
66
67
68
69
plugins {
id "java-library"
id "maven-publish"
id "com.google.protobuf"
id "ru.vyarus.animalsniffer"
}
description = "gRPC: Services"
tasks.named("compileJava").configure {
// v1alpha of reflection.proto is deprecated at the file level.
// Without this workaround, the project can not compile.
it.options.compilerArgs += [
"-Xlint:-deprecation",
]
}
tasks.named("jar").configure {
manifest {
attributes('Automatic-Module-Name': 'io.grpc.services')
}
}
dependencies {
api project(':grpc-stub')
implementation project(':grpc-core'),
project(':grpc-protobuf'),
project(':grpc-util'),
libraries.guava.jre, // JRE required by protobuf-java-util
libraries.protobuf.java.util
runtimeOnly libraries.errorprone.annotations,
libraries.gson // to fix checkUpperBoundDeps error here
compileOnly libraries.javax.annotation
testImplementation project(':grpc-testing'),
project(':grpc-inprocess'),
libraries.netty.transport.epoll, // for DomainSocketAddress
testFixtures(project(':grpc-core')),
testFixtures(project(':grpc-api'))
testCompileOnly libraries.javax.annotation
signature (libraries.signature.java) {
artifact {
extension = "signature"
}
}
}
configureProtoCompilation()
tasks.named("javadoc").configure {
exclude 'io/grpc/services/Internal*.java'
exclude 'io/grpc/services/internal/*'
exclude 'io/grpc/protobuf/services/BinaryLogProvider.java'
exclude 'io/grpc/protobuf/services/internal/*'
}
tasks.named("jacocoTestReport").configure {
classDirectories.from = sourceSets.main.output.collect {
fileTree(dir: it,
exclude: [
'**/io/grpc/binarylog/v1/**',
'**/io/grpc/channelz/v1/**',
'**/io/grpc/health/v1/**',
'**/io/grpc/reflection/v1/**',
'**/io/grpc/reflection/v1alpha/**',
])
}
}