-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
122 lines (98 loc) · 2.98 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
group 'org.tron'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
apply plugin: 'application'
apply plugin: 'idea'
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = 1.8
mainClassName = "org.tron.program.RpcHunterListAccount"
if (project.hasProperty("mainClass")) {
mainClassName = mainClass
}
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
}
ext {
grpcVersion = '1.6.1'
protobufVersion = '3.3.0'
protobufGradlePluginVersion = '0.8.0'
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
}
}
dependencies {
compile group: 'org.apache.jmeter', name: 'ApacheJMeter_java', version: '4.0'
// google grpc
compile group: 'io.grpc', name: 'grpc-netty', version: '1.9.0'
compile group: 'io.grpc', name: 'grpc-protobuf', version: '1.9.0'
compile group: 'io.grpc', name: 'grpc-stub', version: '1.9.0'
compile group: 'com.googlecode.protobuf-java-format', name: 'protobuf-java-format', version: '1.4'
compile group: 'com.typesafe', name: 'config', version: '1.3.2'
compile "com.madgag.spongycastle:core:1.53.0.0"
compile "com.madgag.spongycastle:prov:1.53.0.0"
compile "org.projectlombok:lombok:1.16.18"
// csv
compile group: 'org.apache.commons', name: 'commons-csv', version: '1.5'
// command
compile group: 'com.beust', name: 'jcommander', version: '1.72'
compile group: 'com.google.api.grpc', name: 'googleapis-common-protos', version: '0.0.3'
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.springframework', name: 'spring-context', version: '4.2.0.RELEASE'
compile group: 'org.springframework', name: 'spring-tx', version: '4.2.0.RELEASE'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.2'
// progress bar
compile group: 'me.tongfei', name: 'progressbar', version: '0.7.1'
}
sourceSets {
main {
proto {
srcDir 'src/main/protos'
}
java {
srcDir 'src/main/gen'
srcDir 'src/main/java'
}
}
}
protobuf {
generatedFilesBaseDir = "$projectDir/src/"
protoc {
artifact = "com.google.protobuf:protoc:3.5.1-1"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.9.0'
}
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
outputSubDir = "gen"
}
}
}
all()*.plugins {
grpc {
outputSubDir = "gen"
}
}
}
}
shadowJar {
zip64 true
baseName = mainClassName
classifier = null
version = null
}