-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
build.gradle
105 lines (95 loc) · 3.01 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
plugins {
id "java-library"
id "maven-publish"
id "me.champeau.gradle.japicmp"
id "me.champeau.jmh"
id "ru.vyarus.animalsniffer"
}
description = "gRPC: Netty"
tasks.named("jar").configure {
manifest {
attributes('Automatic-Module-Name': 'io.grpc.netty')
}
}
dependencies {
api project(':grpc-api'),
libraries.animalsniffer.annotations,
libraries.netty.codec.http2
implementation project(':grpc-core'),
libs.netty.handler.proxy,
libraries.guava,
libraries.errorprone.annotations,
libraries.perfmark.api,
libraries.netty.unix.common
runtimeOnly project(":grpc-util") // need grpc-util to pull in round robin
// Tests depend on base class defined by core module.
testImplementation testFixtures(project(':grpc-core')),
testFixtures(project(':grpc-api')),
project(':grpc-testing'),
project(':grpc-testing-proto'),
libraries.conscrypt,
libraries.netty.transport.epoll
testRuntimeOnly libraries.netty.tcnative,
libraries.netty.tcnative.classes
testRuntimeOnly (libraries.netty.tcnative) {
artifact {
classifier = "linux-x86_64"
}
}
testRuntimeOnly (libraries.netty.tcnative) {
artifact {
classifier = "linux-aarch_64"
}
}
testRuntimeOnly (libraries.netty.tcnative) {
artifact {
classifier = "osx-x86_64"
}
}
testRuntimeOnly (libraries.netty.tcnative) {
artifact {
classifier = "osx-aarch_64"
}
}
testRuntimeOnly (libraries.netty.tcnative) {
artifact {
classifier = "windows-x86_64"
}
}
testRuntimeOnly (libraries.netty.transport.epoll) {
artifact {
classifier = "linux-x86_64"
}
}
signature (libraries.signature.java) {
artifact {
extension = "signature"
}
}
signature (libraries.signature.android) {
artifact {
extension = "signature"
}
}
}
import net.ltgt.gradle.errorprone.CheckSeverity
[tasks.named("compileJava"), tasks.named("compileTestJava")]*.configure {
// Netty returns a lot of futures that we mostly don't care about.
options.errorprone.check("FutureReturnValueIgnored", CheckSeverity.OFF)
}
tasks.named("javadoc").configure {
options.linksOffline 'https://netty.io/4.1/api/',
"${rootProject.projectDir}/gradle/javadoc/netty.io-4.1-api/"
exclude 'io/grpc/netty/*Provider.java'
exclude 'io/grpc/netty/GrpcHttp2ConnectionHandler.java'
exclude 'io/grpc/netty/Internal*'
exclude 'io/grpc/netty/ProtocolNegotiationEvent.java'
}
tasks.named("jmh").configure {
// Workaround
// https://github.com/melix/jmh-gradle-plugin/issues/97#issuecomment-316664026
includeTests = true
}
tasks.named("checkstyleMain").configure {
source = source.minus(fileTree(dir: "src/main", include: "**/Http2ControlFrameLimitEncoder.java"))
}