mirror of https://github.com/grpc/grpc-java.git
49 lines
1.4 KiB
Groovy
49 lines
1.4 KiB
Groovy
plugins {
|
|
id "java-library"
|
|
id "maven-publish"
|
|
|
|
id "me.champeau.gradle.japicmp"
|
|
id "ru.vyarus.animalsniffer"
|
|
}
|
|
|
|
description = "gRPC: OkHttp"
|
|
|
|
evaluationDependsOn(project(':grpc-core').path)
|
|
|
|
dependencies {
|
|
api project(':grpc-core')
|
|
api (libraries.okhttp) {
|
|
// prefer our own versions instead of okhttp's dependency
|
|
exclude group: 'com.squareup.okio', module: 'okio'
|
|
}
|
|
implementation libraries.okio
|
|
guavaDependency 'implementation'
|
|
perfmarkDependency 'implementation'
|
|
// Tests depend on base class defined by core module.
|
|
testImplementation project(':grpc-core').sourceSets.test.output,
|
|
project(':grpc-api').sourceSets.test.output,
|
|
project(':grpc-testing'),
|
|
project(':grpc-netty')
|
|
signature "org.codehaus.mojo.signature:java17:1.0@signature"
|
|
signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature"
|
|
}
|
|
|
|
project.sourceSets {
|
|
main { java { srcDir "${projectDir}/third_party/okhttp/main/java" } }
|
|
test { java { srcDir "${projectDir}/third_party/okhttp/test/java" } }
|
|
}
|
|
|
|
checkstyleMain.exclude '**/io/grpc/okhttp/internal/**'
|
|
|
|
javadoc.exclude 'io/grpc/okhttp/internal/**'
|
|
javadoc.options.links 'http://square.github.io/okhttp/2.x/okhttp/'
|
|
|
|
jacocoTestReport {
|
|
classDirectories.from = sourceSets.main.output.collect {
|
|
fileTree(dir: it,
|
|
exclude: [
|
|
'**/io/grpc/okhttp/internal/**',
|
|
])
|
|
}
|
|
}
|