blob: 37d033350c907731a88081f6bd7f21faa39ba145 [file] [log] [blame]
plugins {
id "java-library"
id "maven-publish"
id "me.champeau.gradle.japicmp"
id "ru.vyarus.animalsniffer"
}
description = "gRPC: OkHttp"
dependencies {
api project(':grpc-core')
implementation libraries.okio,
libraries.guava,
libraries.perfmark.api
// Make okhttp dependencies compile only
compileOnly libraries.okhttp
// 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.netty.codec.http2,
libraries.okhttp
signature libraries.signature.java
signature libraries.signature.android
}
project.sourceSets {
main { java { srcDir "${projectDir}/third_party/okhttp/main/java" } }
test { java { srcDir "${projectDir}/third_party/okhttp/test/java" } }
}
tasks.named("checkstyleMain").configure {
exclude '**/io/grpc/okhttp/internal/**'
}
tasks.named("javadoc").configure {
options.links 'http://square.github.io/okhttp/2.x/okhttp/'
exclude 'io/grpc/okhttp/Internal*'
exclude 'io/grpc/okhttp/internal/**'
}
tasks.named("jacocoTestReport").configure {
classDirectories.from = sourceSets.main.output.collect {
fileTree(dir: it,
exclude: [
'**/io/grpc/okhttp/internal/**',
])
}
}