diff --git a/build.gradle b/build.gradle index d59bbfde32..ec8222f49e 100644 --- a/build.gradle +++ b/build.gradle @@ -176,11 +176,6 @@ subprojects { useJUnitPlatform { excludeTags 'docker' } - - develocity.testRetry { - maxFailures = 5 - maxRetries = 3 - } } task dockerTest(type: Test) { @@ -192,8 +187,12 @@ subprojects { } } - project.tasks.withType(Test) { Test testTask -> - testTask.testLogging.exceptionFormat = 'full' + tasks.withType(Test).configureEach { + testLogging.exceptionFormat = 'full' + develocity.testRetry { + maxFailures = 5 + maxRetries = 3 + } } license {