diff --git a/buildSrc/src/main/kotlin/sent.kotlin.gradle.kts b/buildSrc/src/main/kotlin/sent.kotlin.gradle.kts index f3df8d72..435d7010 100644 --- a/buildSrc/src/main/kotlin/sent.kotlin.gradle.kts +++ b/buildSrc/src/main/kotlin/sent.kotlin.gradle.kts @@ -31,6 +31,10 @@ kotlin { } tasks.withType().configureEach { + // Mockito dynamically attaches its byte-buddy agent; without this flag the JDK prints a warning + // to stderr that breaks tests asserting on captured log output (e.g. LoggingHttpClientTest). + jvmArgs("-XX:+EnableDynamicAgentLoading") + systemProperty("junit.jupiter.execution.parallel.enabled", true) systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")