File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ plugins {
1313 id(" nebula.release" ) version " 15.2.0"
1414 id(" maven-publish" )
1515 id(" io.gitlab.arturbosch.detekt" ) version " 1.17.1"
16+ id(" org.gradle.test-retry" ) version " 1.4.1"
1617}
1718
1819repositories {
@@ -57,6 +58,9 @@ tasks.withType<Test> {
5758 slowThreshold = Consts .SLOW_TESTS_LOGGING_THRESHOLD_MS
5859 theme = ThemeType .STANDARD
5960 }
61+ retry {
62+ maxRetries.set(Consts .MAX_TEST_RETRIES_COUNT )
63+ }
6064}
6165
6266tasks.withType<Detekt >().configureEach {
@@ -66,7 +70,6 @@ tasks.withType<Detekt>().configureEach {
6670val settingsProvider = SettingsProvider ()
6771
6872tasks {
69-
7073 // All checks were already made by workflow "On pull request" => no checks here
7174 if (gradle.startParameter.taskNames.contains(" final" )) {
7275 named(" build" ).get().apply {
@@ -324,6 +327,6 @@ object PublicationSettings {
324327}
325328
326329object Consts {
327-
328330 const val SLOW_TESTS_LOGGING_THRESHOLD_MS = 30_000L
331+ const val MAX_TEST_RETRIES_COUNT = 3
329332}
You can’t perform that action at this time.
0 commit comments