-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
build.gradle
70 lines (61 loc) · 1.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
plugins {
id "java-library"
id "maven-publish"
id "me.champeau.gradle.japicmp"
id "ru.vyarus.animalsniffer"
}
description = "gRPC: OkHttp"
tasks.named("jar").configure {
manifest {
attributes('Automatic-Module-Name': 'io.grpc.okhttp')
}
}
dependencies {
api project(':grpc-api')
implementation project(':grpc-util'),
project(':grpc-core'),
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) {
artifact {
extension = "signature"
}
}
signature (libraries.signature.android) {
artifact {
extension = "signature"
}
}
}
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.linksOffline 'https://square.github.io/okhttp/2.x/okhttp/',
"${rootProject.projectDir}/gradle/javadoc/square.github.io-okhttp-2.x-okhttp/"
exclude 'io/grpc/okhttp/Internal*'
exclude 'io/grpc/okhttp/*Provider.java'
exclude 'io/grpc/okhttp/internal/**'
}
tasks.named("jacocoTestReport").configure {
classDirectories.from = sourceSets.main.output.collect {
fileTree(dir: it,
exclude: [
'**/io/grpc/okhttp/internal/**',
])
}
}