From bff334cf0fb422e76ac7437ec51a8cf27bf36888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20Br=C3=BCnings?= Date: Fri, 19 Apr 2024 18:31:43 +0200 Subject: [PATCH] Fix deprecated test retry config --- spock-specs/specs.gradle | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/spock-specs/specs.gradle b/spock-specs/specs.gradle index 64888cf259..f6c6134e1b 100644 --- a/spock-specs/specs.gradle +++ b/spock-specs/specs.gradle @@ -74,13 +74,16 @@ tasks.named("test", Test) { } if (isCiServer) { - retry { - maxRetries = 2 - maxFailures = 20 - - filter { - includeAnnotationClasses.add("spock.lang.Timeout") - includeAnnotationClasses.add("spock.lang.Isolated") + develocity { + testRetry { + maxRetries = 2 + maxFailures = 20 + + filter { + includeAnnotationClasses.add("spock.lang.Timeout") + includeAnnotationClasses.add("spock.lang.Isolated") + } + } } } }