blob: cc10105fc90d710a595f3246d0a4fdd1a91862e6 [file] [log] [blame]
nmittlerf8314582015-01-27 10:25:39 -08001description = "gRPC: Netty"
nathanmittler164b7342014-12-15 09:58:05 -08002dependencies {
nmittlerf8314582015-01-27 10:25:39 -08003 compile project(':grpc-core'),
Eric Anderson23f5a6f2016-12-21 11:33:55 -06004 libraries.netty,
5 libraries.netty_proxy_handler
nathanmittler164b7342014-12-15 09:58:05 -08006
7 // Tests depend on base class defined by core module.
nmittler4ee2a652015-06-01 16:20:08 -07008 testCompile project(':grpc-core').sourceSets.test.output,
Eric Anderson0859d482017-08-25 13:01:57 -07009 project(':grpc-testing'),
10 project(':grpc-testing-proto')
Eric Anderson7eab0d92018-02-15 17:14:10 -080011 testRuntime libraries.netty_tcnative,
12 libraries.conscrypt
Eric Andersonc4365612017-06-30 15:25:34 -070013 signature "org.codehaus.mojo.signature:java17:1.0@signature"
nmittler4ee2a652015-06-01 16:20:08 -070014}
15
Carl Mastrangeloee12cc22017-03-22 22:09:04 -070016[compileJava, compileTestJava].each() {
17 // Netty retuns a lot of futures that we mostly don't care about.
18 it.options.compilerArgs += ["-Xep:FutureReturnValueIgnored:OFF"]
19}
20
Eric Andersoncb53bbf2017-06-16 14:53:51 -070021javadoc {
22 options.links 'http://netty.io/4.1/api/'
23 exclude 'io/grpc/netty/Internal*'
24}
Eric Anderson9ef07912017-03-14 14:07:10 -070025
26project.sourceSets {
27 main {
28 java {
29 srcDir "${projectDir}/third_party/netty/java"
30 }
31 }
32}
33
Eric Anderson0859d482017-08-25 13:01:57 -070034test {
35 // Allow testing Jetty ALPN in TlsTest
36 jvmArgs "-javaagent:" + configurations.alpnagent.asPath
37}
Eric Anderson6164b7b2017-08-26 17:10:18 -070038
39jmh {
40 // Workaround
41 // https://github.com/melix/jmh-gradle-plugin/issues/97#issuecomment-316664026
42 includeTests = true
43}