@@ -95,14 +95,13 @@ configurations {
95
95
agent
96
96
}
97
97
98
-
99
98
dependencies {
100
99
api " com.github.luben:zstd-jni:1.5.6-1"
101
100
api " com.intel.qat:qat-java:1.1.1"
102
101
103
102
agent " org.opensearch:opensearch-agent-bootstrap:${ opensearch_version} "
104
103
agent " org.opensearch:opensearch-agent:${ opensearch_version} "
105
- agent " net.bytebuddy:byte-buddy:1.17.5 "
104
+ agent " net.bytebuddy:byte-buddy:${ versions.bytebuddy } "
106
105
}
107
106
108
107
allprojects {
@@ -205,24 +204,17 @@ tasks.named("testingConventions").configure {
205
204
}
206
205
}
207
206
208
- internalClusterTest {
209
- dependsOn " prepareAgent"
210
- jvmArgs + = [" -javaagent:" + project. layout. buildDirectory. file(" agent/opensearch-agent-${ opensearch_version} .jar" ). get()]
211
- }
212
-
213
207
integTest {
214
208
description = " Run tests against a cluster"
215
209
testClassesDirs = sourceSets. integTest. output. classesDirs
216
210
classpath = sourceSets. integTest. runtimeClasspath
217
211
218
- dependsOn " bundlePlugin" , " prepareAgent "
212
+ dependsOn " bundlePlugin"
219
213
systemProperty ' tests.security.manager' , ' true'
220
214
221
215
systemProperty " https" , System . getProperty(" https" )
222
216
systemProperty " user" , System . getProperty(" user" )
223
217
systemProperty " password" , System . getProperty(" password" )
224
-
225
- jvmArgs + = [" -javaagent:" + project. layout. buildDirectory. file(" agent/opensearch-agent-${ opensearch_version} .jar" ). get()]
226
218
}
227
219
228
220
testClusters. integTest {
@@ -254,7 +246,7 @@ task prepareAgent(type: Copy) {
254
246
into " $buildDir /agent"
255
247
}
256
248
257
- tasks. test {
249
+ tasks. withType( Test ) {
258
250
dependsOn prepareAgent
259
251
jvmArgs + = [" -javaagent:" + project. layout. buildDirectory. file(" agent/opensearch-agent-${ opensearch_version} .jar" ). get()]
260
- }
252
+ }
0 commit comments