-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
Copy pathbuild.gradle
49 lines (41 loc) · 1.22 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
plugins {
id "java-library"
id "maven-publish"
id "com.google.protobuf"
id "me.champeau.gradle.japicmp"
id "ru.vyarus.animalsniffer"
}
description = 'gRPC: Protobuf'
tasks.named("jar").configure {
manifest {
attributes('Automatic-Module-Name': 'io.grpc.protobuf')
}
}
dependencies {
api project(':grpc-api'),
libraries.jsr305,
libraries.protobuf.java
implementation libraries.guava
api (libraries.google.api.protos) {
// 'com.google.api:api-common' transitively depends on auto-value, which breaks our
// annotations.
exclude group: 'com.google.api', module: 'api-common'
}
implementation (project(':grpc-protobuf-lite')) {
exclude group: 'com.google.protobuf', module: 'protobuf-javalite'
}
signature (libraries.signature.java) {
artifact {
extension = "signature"
}
}
signature (libraries.signature.android) {
artifact {
extension = "signature"
}
}
}
tasks.named("javadoc").configure {
options.linksOffline 'https://protobuf.dev/reference/java/api-docs/',
"${rootProject.projectDir}/gradle/javadoc/protobuf.dev-reference-java-api-docs/"
}