Skip to content

Commit a2a42e3

Browse files
authored
interop-testing: add alpnagent to support okhttp in test client
1 parent 55379d1 commit a2a42e3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

interop-testing/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@ test {
2929
task test_client(type: CreateStartScripts) {
3030
mainClassName = "io.grpc.testing.integration.TestServiceClient"
3131
applicationName = "test-client"
32+
defaultJvmOpts = ["-javaagent:JAVAAGENT_APP_HOME" + configurations.alpnagent.singleFile.name]
3233
outputDir = new File(project.buildDir, 'tmp')
3334
classpath = jar.outputs.files + configurations.runtime
35+
dependencies {
36+
runtime configurations.alpnagent
37+
}
38+
doLast {
39+
unixScript.text = unixScript.text.replace('JAVAAGENT_APP_HOME', '\$APP_HOME/lib/')
40+
windowsScript.text = windowsScript.text.replace('JAVAAGENT_APP_HOME', '%APP_HOME%\\lib\\')
41+
}
3442
}
3543

3644
task test_server(type: CreateStartScripts) {

0 commit comments

Comments
 (0)