-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (65 loc) · 2.42 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
plugins {
id 'java'
id 'com.google.protobuf' version '0.8.8'
// id 'com.google.protobuf' version '0.8.4'
}
group 'com.qjx'
version '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/io.netty/netty-all
compile group: 'io.netty', name: 'netty-all', version: '4.1.42.Final'
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.9.2'
// https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java-util
compile group: 'com.google.protobuf', name: 'protobuf-java-util', version: '3.9.2'
// https://mvnrepository.com/artifact/org.apache.thrift/libthrift
compile group: 'org.apache.thrift', name: 'libthrift', version: '0.12.0'
// https://mvnrepository.com/artifact/javax.annotation/javax.annotation-api
compile group: 'javax.annotation', name: 'javax.annotation-api', version: '1.3.2'
compile 'io.grpc:grpc-netty-shaded:1.24.0'
compile 'io.grpc:grpc-protobuf:1.24.0'
compile 'io.grpc:grpc-stub:1.24.0'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
// https://mvnrepository.com/artifact/com.google.guava/guava
implementation group: 'com.google.guava', name: 'guava', version: '25.0-jre'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation group: 'com.google.code.gson', name: 'gson', version: '2.2.4'
// https://mvnrepository.com/artifact/com.dyuproject.protostuff/protostuff-runtime
implementation group: 'com.dyuproject.protostuff', name: 'protostuff-runtime', version: '1.0.8'
// https://mvnrepository.com/artifact/com.dyuproject.protostuff/protostuff-core
implementation group: 'com.dyuproject.protostuff', name: 'protostuff-core', version: '1.0.8'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile(
"junit:junit:4.11"
)
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.21.0"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.47.0'
}
}
generateProtoTasks.generatedFilesBaseDir = "src"
generateProtoTasks {
all()*.plugins {
grpc {
setOutputSubDir 'java'
}
}
}
}
//sourceSets {
// main {
// proto {
// srcDir 'src/main/proto'
// srcDir 'src/main'
// }
// }
//}