forked from google/tsunami-security-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
41 lines (36 loc) · 790 Bytes
/
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
plugins {
id 'com.google.protobuf'
}
description = 'Tsunami: Protobuf Data'
sourceSets {
main {
proto {
srcDir "${projectDir}"
exclude "build/**"
}
}
}
protobuf {
generatedFilesBaseDir = "${projectDir}/build/generated"
protoc {
artifact = "com.google.protobuf:protoc:${protocVersion}"
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}"
}
}
generateProtoTasks {
all()*.plugins { grpc {} }
}
}
idea {
module {
sourceDirs += file("${projectDir}/build/generated/main/java");
sourceDirs += file("${projectDir}/build/generated/main/grpc");
}
}
dependencies {
compile deps.protobuf
compile deps.grpc_protobuf
}