File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,10 @@ repositories {
118
118
maven { url " https://plugins.gradle.org/m2/" }
119
119
}
120
120
121
+ configurations {
122
+ agent
123
+ }
124
+
121
125
dependencies {
122
126
implementation " org.apache.lucene:lucene-expressions:${ luceneVersion} "
123
127
implementation " org.antlr:antlr4-runtime:${ antlrVersion} "
@@ -137,6 +141,10 @@ dependencies {
137
141
runtimeOnly ' org.locationtech.spatial4j:spatial4j:0.7'
138
142
runtimeOnly ' org.locationtech.jts:jts-core:1.15.0'
139
143
runtimeOnly ' org.apache.logging.log4j:log4j-core:2.21.0'
144
+
145
+ agent " org.opensearch:opensearch-agent-bootstrap:${ opensearch_version} "
146
+ agent " org.opensearch:opensearch-agent:${ opensearch_version} "
147
+ agent " net.bytebuddy:byte-buddy:${ versions.bytebuddy} "
140
148
}
141
149
142
150
configurations. all {
@@ -248,6 +256,16 @@ tasks.withType(Test).configureEach { task ->
248
256
}
249
257
}
250
258
259
+ task prepareAgent (type : Copy ) {
260
+ from(configurations. agent)
261
+ into " $buildDir /agent"
262
+ }
263
+
264
+ tasks. withType(Test ) {
265
+ dependsOn prepareAgent
266
+ jvmArgs + = [" -javaagent:" + project. layout. buildDirectory. file(" agent/opensearch-agent-${ opensearch_version} .jar" ). get()]
267
+ }
268
+
251
269
tasks. named(' dependencyLicenses' ) {
252
270
enabled = false
253
271
}
@@ -274,4 +292,4 @@ run {
274
292
}
275
293
}
276
294
useCluster testClusters. integTest
277
- }
295
+ }
You can’t perform that action at this time.
0 commit comments