-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathenableGRPC.gradle
37 lines (31 loc) · 928 Bytes
/
enableGRPC.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
import com.google.protobuf.gradle.*
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:$protobufVersion"
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:$grpcVersion"
}
coroutines {
artifact = "com.github.marcoferrer.krotoplus:protoc-gen-grpc-coroutines:$krotoplusVersion:jvm8@jar"
}
kroto {
artifact = "com.github.marcoferrer.krotoplus:protoc-gen-kroto-plus:$krotoplusVersion:jvm8@jar"
}
}
generateProtoTasks {
def krotoConfig = file("krotoPlusConfig.asciipb")
all().each { task ->
task.inputs.files krotoConfig
task.plugins {
grpc {}
coroutines {}
kroto {
outputSubDir = "java"
option "ConfigPath=$krotoConfig"
}
}
}
}
}