We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4687dd3 commit d1d1264Copy full SHA for d1d1264
build.gradle
@@ -211,6 +211,29 @@ allprojects {
211
plugins.withId('jacoco') {
212
jacoco.toolVersion = '0.8.12'
213
}
214
+
215
+ configurations {
216
+ agent
217
+ }
218
219
+ dependencies {
220
221
222
+ task prepareAgent(type: Copy) {
223
+ from(configurations.agent)
224
+ into "$buildDir/agent"
225
226
227
228
+ agent "org.opensearch:opensearch-agent-bootstrap:${opensearch_version}"
229
+ agent "org.opensearch:opensearch-agent:${opensearch_version}"
230
+ agent "net.bytebuddy:byte-buddy:${versions.bytebuddy}"
231
232
233
+ tasks.withType(Test) {
234
+ dependsOn prepareAgent
235
+ jvmArgs += ["-javaagent:" + project.layout.buildDirectory.file("agent/opensearch-agent-${opensearch_version}.jar").get()]
236
237
238
239
java {
0 commit comments