forked from hortonworks/cloudbreak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (56 loc) · 1.66 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
apply plugin: 'com.google.protobuf'
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url = "$repoUrl" }
maven { url 'http://repo.spring.io/libs-release' }
jcenter()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8'
}
}
apply plugin: 'io.spring.dependency-management'
dependencyManagement {
dependencies {
dependencySet(group: 'org.springframework.boot', version: springBootVersion) {
entry 'spring-boot-starter-test'
}
}
}
dependencies {
compile project(':common')
compile project(':grpc-common')
compile project(':auth-connector')
implementation group: 'com.dyngr', name: 'polling', version: '1.1.3'
compile ("io.grpc:grpc-all:1.19.0") {
exclude group: 'org.mockito'
}
testCompile group: 'org.mockito', name: 'mockito-core', version: mockitoVersion
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test'
}
checkstyle {
checkstyleMain.exclude '**/generated/**'
}
protobuf {
protoc {
// The version of protoc must match protobuf-java. If you don't depend on
// protobuf-java directly, you will be transitively depending on the
// protobuf-java version that grpc depends on.
artifact = "com.google.protobuf:protoc:3.6.1"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.12.0'
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
generatedFilesBaseDir = "$projectDir/src/generated"
}