We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b8166 commit 702b719Copy full SHA for 702b719
build.gradle
@@ -93,6 +93,26 @@ ext {
93
allprojects {
94
group = "org.opensearch"
95
version = opensearch_build
96
+
97
+ configurations {
98
+ agent
99
+ }
100
101
+ task prepareAgent(type: Copy) {
102
+ from(configurations.agent)
103
+ into "$buildDir/agent"
104
105
106
+ dependencies {
107
+ agent "org.opensearch:opensearch-agent-bootstrap:${opensearch_version}"
108
+ agent "org.opensearch:opensearch-agent:${opensearch_version}"
109
+ agent "net.bytebuddy:byte-buddy:1.17.5"
110
111
112
+ tasks.withType(Test) {
113
+ dependsOn prepareAgent
114
+ jvmArgs += ["-javaagent:" + project.layout.buildDirectory.file("agent/opensearch-agent-${opensearch_version}.jar").get()]
115
116
}
117
118
apply plugin: 'opensearch.opensearchplugin'
0 commit comments