File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,7 @@ allprojects {
248
248
249
249
configurations {
250
250
zipArchive
251
+ agent
251
252
}
252
253
253
254
publishing {
@@ -360,6 +361,10 @@ dependencies {
360
361
// OpenSearch core is using slf4j 1.7.36. Therefore, we cannot change the version here.
361
362
implementation ' org.slf4j:slf4j-api:1.7.36'
362
363
zipArchive group : ' org.opensearch.plugin' , name :' opensearch-security' , version : " ${ opensearch_build} "
364
+
365
+ agent " org.opensearch:opensearch-agent-bootstrap:${ opensearch_version} "
366
+ agent " org.opensearch:opensearch-agent:${ opensearch_version} "
367
+ agent " net.bytebuddy:byte-buddy:${ versions.bytebuddy} "
363
368
}
364
369
365
370
task windowsPatches (type :Exec ) {
@@ -610,3 +615,14 @@ task updateVersion {
610
615
}
611
616
}
612
617
}
618
+
619
+ task prepareAgent (type : Copy ) {
620
+ from(configurations. agent)
621
+ into " $buildDir /agent"
622
+ }
623
+
624
+ tasks. withType(Test ) {
625
+ dependsOn prepareAgent
626
+ jvmArgs + = [" -javaagent:" + project. layout. buildDirectory. file(" agent/opensearch-agent-${ opensearch_version} .jar" ). get()]
627
+ }
628
+
You can’t perform that action at this time.
0 commit comments