/
build.gradle
70 lines (54 loc) · 1.79 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
65
66
67
68
69
70
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
buildscript {
repositories {
maven {
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
jcenter()
}
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.5'
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
}
}
apply plugin: 'com.github.johnrengelman.shadow'
repositories {
maven {
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
}
jcenter()
mavenLocal()
}
def grpcVersion = '1.16.1'
def protobufVersion = '3.5.1'
dependencies {
compile "com.google.api.grpc:proto-google-common-protos:1.12.0"
compile "io.grpc:grpc-alts:${grpcVersion}"
compile "io.grpc:grpc-netty-shaded:${grpcVersion}"
compile "io.grpc:grpc-netty:${grpcVersion}"
compile "io.grpc:grpc-protobuf:${grpcVersion}"
compile "io.grpc:grpc-stub:${grpcVersion}"
compileOnly "javax.annotation:javax.annotation-api:1.2"
compile "com.google.protobuf:protobuf-java-util:${protobufVersion}"
compile "xyz.breakit:grpc-api"
compile "xyz.breakit:grpc-common"
runtimeOnly "io.opencensus:opencensus-impl:0.12.3"
testCompile "io.grpc:grpc-testing:${grpcVersion}"
testCompile "junit:junit:4.12"
testCompile "com.google.truth:truth:0.42"
testCompile "com.google.truth.extensions:truth-proto-extension:0.42"
testCompile "org.mockito:mockito-core:1.9.5"
}
apply plugin: 'idea'
apply plugin: 'application'
startScripts.enabled = false
mainClassName = "xyz.breakit.geese.GeeseServer"
shadowJar {
baseName = 'geese'
classifier = ''
archiveVersion = ''
mergeServiceFiles()
}
apply from: '../common/common.gradle'
buildDocker.dependsOn 'shadowJar'