Skip to content

Commit abf7a46

Browse files
committed
2926 Update JVM arguments to include dynamic agent loading for tests
1 parent 7b64f2c commit abf7a46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/main/kotlin/com.bytechef.java-common-conventions.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ val test by tasks.existing(Test::class) {
212212
showCauses = true
213213
showStackTraces = true
214214
}
215-
jvmArgs("-Djava.security.egd=file:/dev/./urandom -Xmx256m")
215+
jvmArgs("-Djava.security.egd=file:/dev/./urandom", "-Xmx256m", "-XX:+EnableDynamicAgentLoading")
216216
// uncomment if the tests reports are not generated
217217
// ignoreFailures = true
218218
reports.html.required.set(true)
@@ -246,7 +246,7 @@ val testIntegration by tasks.registering(Test::class) {
246246
showCauses = true
247247
showStackTraces = true
248248
}
249-
jvmArgs("-Djava.security.egd=file:/dev/./urandom -Xmx256m")
249+
jvmArgs("-Djava.security.egd=file:/dev/./urandom", "-Xmx256m", "-XX:+EnableDynamicAgentLoading")
250250

251251
environment["spring.profiles.active"] = "testint"
252252

0 commit comments

Comments
 (0)