File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,29 @@ allprojects {
244
244
project. noticeFile = rootProject. file(' NOTICE.txt' )
245
245
project. forbiddenApis. ignoreFailures = true
246
246
}
247
+
248
+ configurations {
249
+ agent
250
+ }
251
+
252
+ dependencies {
253
+ }
254
+
255
+ task prepareAgent(type : Copy ) {
256
+ from(configurations. agent)
257
+ into " $buildDir /agent"
258
+ }
259
+
260
+ dependencies {
261
+ agent " org.opensearch:opensearch-agent-bootstrap:${ opensearch_version} "
262
+ agent " org.opensearch:opensearch-agent:${ opensearch_version} "
263
+ agent " net.bytebuddy:byte-buddy:${ versions.bytebuddy} "
264
+ }
265
+
266
+ tasks. withType(Test ) {
267
+ dependsOn prepareAgent
268
+ jvmArgs + = [" -javaagent:" + project. layout. buildDirectory. file(" agent/opensearch-agent-${ opensearch_version} .jar" ). get()]
269
+ }
247
270
}
248
271
249
272
configurations {
@@ -610,3 +633,4 @@ task updateVersion {
610
633
}
611
634
}
612
635
}
636
+
You can’t perform that action at this time.
0 commit comments