@@ -11,6 +11,7 @@ startScripts.enabled = false
11
11
12
12
configurations {
13
13
alpnagent
14
+ xdsRuntime
14
15
}
15
16
16
17
evaluationDependsOn(project(' :grpc-context' ). path)
@@ -32,6 +33,7 @@ dependencies {
32
33
runtime libraries. opencensus_impl,
33
34
libraries. netty_tcnative,
34
35
project(' :grpc-grpclb' )
36
+ xdsRuntime project(path : ' :grpc-xds' , configuration : ' shadow' )
35
37
testCompile project(' :grpc-context' ). sourceSets. test. output,
36
38
libraries. mockito
37
39
alpnagent libraries. jetty_alpn_agent
@@ -61,8 +63,7 @@ task test_client(type: CreateStartScripts) {
61
63
" -javaagent:JAVAAGENT_APP_HOME" + configurations. alpnagent. singleFile. name
62
64
]
63
65
outputDir = new File (project. buildDir, ' tmp' )
64
- classpath = jar. outputs. files + configurations. runtime
65
- dependencies { runtime configurations. alpnagent }
66
+ classpath = startScripts. classpath
66
67
doLast {
67
68
unixScript. text = unixScript. text. replace(' JAVAAGENT_APP_HOME' , ' \$ APP_HOME/lib/' )
68
69
windowsScript. text = windowsScript. text. replace(' JAVAAGENT_APP_HOME' , ' %APP_HOME%\\ lib\\ ' )
@@ -73,21 +74,21 @@ task test_server(type: CreateStartScripts) {
73
74
mainClassName = " io.grpc.testing.integration.TestServiceServer"
74
75
applicationName = " test-server"
75
76
outputDir = new File (project. buildDir, ' tmp' )
76
- classpath = jar . outputs . files + configurations . runtime
77
+ classpath = startScripts . classpath
77
78
}
78
79
79
80
task reconnect_test_client (type : CreateStartScripts ) {
80
81
mainClassName = " io.grpc.testing.integration.ReconnectTestClient"
81
82
applicationName = " reconnect-test-client"
82
83
outputDir = new File (project. buildDir, ' tmp' )
83
- classpath = jar . outputs . files + configurations . runtime
84
+ classpath = startScripts . classpath
84
85
}
85
86
86
87
task stresstest_client (type : CreateStartScripts ) {
87
88
mainClassName = " io.grpc.testing.integration.StressTestClient"
88
89
applicationName = " stresstest-client"
89
90
outputDir = new File (project. buildDir, ' tmp' )
90
- classpath = jar . outputs . files + configurations . runtime
91
+ classpath = startScripts . classpath
91
92
defaultJvmOpts = [
92
93
" -verbose:gc" ,
93
94
" -XX:+PrintFlagsFinal"
@@ -98,14 +99,14 @@ task http2_client(type: CreateStartScripts) {
98
99
mainClassName = " io.grpc.testing.integration.Http2Client"
99
100
applicationName = " http2-client"
100
101
outputDir = new File (project. buildDir, ' tmp' )
101
- classpath = jar . outputs . files + configurations . runtime
102
+ classpath = startScripts . classpath
102
103
}
103
104
104
105
task grpclb_long_lived_affinity_test_client (type : CreateStartScripts ) {
105
106
mainClassName = " io.grpc.testing.integration.GrpclbLongLivedAffinityTestClient"
106
107
applicationName = " grpclb-long-lived-affinity-test-client"
107
108
outputDir = new File (project. buildDir, ' tmp' )
108
- classpath = jar . outputs . files + configurations . runtime
109
+ classpath = startScripts . classpath
109
110
defaultJvmOpts = [
110
111
" -Dio.grpc.internal.DnsNameResolverProvider.enable_grpclb=true" ,
111
112
" -Dio.grpc.internal.DnsNameResolverProvider.enable_service_config=true"
@@ -115,18 +116,15 @@ task grpclb_long_lived_affinity_test_client(type: CreateStartScripts) {
115
116
task xds_test_client (type : CreateStartScripts ) {
116
117
mainClassName = " io.grpc.testing.integration.XdsTestClient"
117
118
applicationName = " xds-test-client"
118
- dependencies {
119
- runtime project(path : ' :grpc-xds' , configuration : ' shadow' )
120
- }
121
119
outputDir = new File (project. buildDir, ' tmp' )
122
- classpath = startScripts. classpath
120
+ classpath = startScripts. classpath + configurations . xdsRuntime
123
121
}
124
122
125
123
task xds_test_server (type : CreateStartScripts ) {
126
124
mainClassName = " io.grpc.testing.integration.XdsTestServer"
127
125
applicationName = " xds-test-server"
128
126
outputDir = new File (project. buildDir, ' tmp' )
129
- classpath = jar . outputs . files + configurations . runtime
127
+ classpath = startScripts . classpath
130
128
}
131
129
132
130
applicationDistribution. into(" bin" ) {
@@ -141,6 +139,11 @@ applicationDistribution.into("bin") {
141
139
fileMode = 0755
142
140
}
143
141
142
+ applicationDistribution. into(" lib" ) {
143
+ from(configurations. alpnagent)
144
+ from(configurations. xdsRuntime)
145
+ }
146
+
144
147
publishing {
145
148
publications {
146
149
maven(MavenPublication ) {
0 commit comments