benchmarks: Use correct classpath for scripts

'runtime' is the old classpath, pre-java-library plugin. We could swap to
'runtimeClasspath', but it is cleaner to just use startScript's defaults. We
already use that approach in interop-testing.

Fixes #7218
This commit is contained in:
Eric Anderson 2020-07-16 09:39:37 -07:00 committed by Eric Anderson
parent 92f4842f0f
commit 44db31d147
1 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ task qps_client(type: CreateStartScripts) {
"-javaagent:" + configurations.alpnagent.asPath
].plus(vmArgs)
outputDir = new File(project.buildDir, 'tmp')
classpath = jar.outputs.files + project.configurations.runtime
classpath = startScripts.classpath
}
task openloop_client(type: CreateStartScripts) {
@ -71,14 +71,14 @@ task openloop_client(type: CreateStartScripts) {
"-javaagent:" + configurations.alpnagent.asPath
].plus(vmArgs)
outputDir = new File(project.buildDir, 'tmp')
classpath = jar.outputs.files + project.configurations.runtime
classpath = startScripts.classpath
}
task qps_server(type: CreateStartScripts) {
mainClassName = "io.grpc.benchmarks.qps.AsyncServer"
applicationName = "qps_server"
outputDir = new File(project.buildDir, 'tmp')
classpath = jar.outputs.files + project.configurations.runtime
classpath = startScripts.classpath
}
task benchmark_worker(type: CreateStartScripts) {
@ -88,7 +88,7 @@ task benchmark_worker(type: CreateStartScripts) {
"-javaagent:" + configurations.alpnagent.asPath
].plus(vmArgs)
outputDir = new File(project.buildDir, 'tmp')
classpath = jar.outputs.files + project.configurations.runtime
classpath = startScripts.classpath
}
applicationDistribution.into("bin") {