-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpc.gradle
45 lines (41 loc) · 972 Bytes
/
rpc.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
android {
sourceSets {
main {
proto {
srcDir '../proto'
}
}
}
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.22.3'
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.55.1'
}
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option 'lite'
}
}
task.plugins {
grpc {
// Options added to --grpc_out
option 'lite'
}
}
}
}
}
dependencies {
implementation 'com.google.protobuf:protobuf-javalite:3.23.1'
implementation 'io.grpc:grpc-okhttp:1.55.1'
implementation 'io.grpc:grpc-protobuf-lite:1.55.1'
implementation 'io.grpc:grpc-stub:1.55.1'
implementation 'org.apache.tomcat:annotations-api:6.0.53'
}