Home | History | Annotate | Download | only in netty
      1 description = "gRPC: Netty"
      2 dependencies {
      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 
     23 javadoc {
     24     options.links 'http://netty.io/4.1/api/'
     25     exclude 'io/grpc/netty/Internal*'
     26 }
     27 
     28 project.sourceSets {
     29     main { java { srcDir "${projectDir}/third_party/netty/java" } }
     30 }
     31 
     32 test {
     33     // Allow testing Jetty ALPN in TlsTest
     34     jvmArgs "-javaagent:" + configurations.alpnagent.asPath
     35 }
     36 
     37 jmh {
     38     // Workaround
     39     // https://github.com/melix/jmh-gradle-plugin/issues/97#issuecomment-316664026
     40     includeTests = true
     41 }
     42