File tree Expand file tree Collapse file tree
java/io/grpc/benchmarks/qps Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ apply plugin : ' application'
2+ apply plugin : ' protobuf'
3+
4+ description = " gRPC Benchmarks"
5+
6+ mainClassName = " io.grpc.benchmarks.qps.Client"
7+
8+ buildscript {
9+ repositories {
10+ mavenCentral()
11+ }
12+ dependencies {
13+ classpath libraries. protobuf_plugin
14+ }
15+ }
16+
17+ dependencies {
18+ compile project(' :grpc-core' ),
19+ project(' :grpc-netty' ),
20+ project(' :grpc-okhttp' ),
21+ project(' :grpc-stub' ),
22+ project(' :grpc-testing' ),
23+ libraries. junit,
24+ libraries. mockito,
25+ libraries. hdrhistogram
26+ }
27+
28+ protobufCodeGenPlugins = [" java_plugin:$rootDir /compiler/build/binaries/java_pluginExecutable/java_plugin" ]
29+ compileJava. dependsOn = [' generateProto' ]
30+
31+ // Allow execution of test client and server.
32+ task execute (dependsOn : classes, type :JavaExec ) {
33+ main = project. hasProperty(' mainClass' ) ? project. mainClass : ' io.grpc.benchmarks.qps.Client'
34+ classpath = sourceSets. main. runtimeClasspath
35+ workingDir = project. rootDir
36+
37+ // If appArgs were provided, set the program arguments.
38+ if (project. hasProperty(" appArgs" )) {
39+ args = Eval . me(appArgs)
40+ }
41+ }
You can’t perform that action at this time.
0 commit comments