• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1description = "gRPC: Netty"
2dependencies {
3    compile project(':grpc-core'),
4            libraries.netty,
5            libraries.netty_proxy_handler
6
7    // Tests depend on base class defined by core module.
8    testCompile project(':grpc-core').sourceSets.test.output,
9            project(':grpc-testing'),
10            project(':grpc-testing-proto')
11    testRuntime libraries.netty_tcnative,
12            libraries.conscrypt
13    signature "org.codehaus.mojo.signature:java17:1.0@signature"
14}
15
16[compileJava, compileTestJava].each() {
17    // Netty retuns a lot of futures that we mostly don't care about.
18    it.options.compilerArgs += [
19        "-Xep:FutureReturnValueIgnored:OFF"
20    ]
21}
22
23javadoc {
24    options.links 'http://netty.io/4.1/api/'
25    exclude 'io/grpc/netty/Internal*'
26}
27
28project.sourceSets {
29    main { java { srcDir "${projectDir}/third_party/netty/java" } }
30}
31
32test {
33    // Allow testing Jetty ALPN in TlsTest
34    jvmArgs "-javaagent:" + configurations.alpnagent.asPath
35}
36
37jmh {
38    // Workaround
39    // https://github.com/melix/jmh-gradle-plugin/issues/97#issuecomment-316664026
40    includeTests = true
41}
42