From 542bf1a36f083f4fa9fe0c4bda424b99e9c2b3a8 Mon Sep 17 00:00:00 2001 From: Kirill Gevorkyan <26010098+kgevorkyan@users.noreply.github.com> Date: Tue, 7 Feb 2023 18:07:50 +0300 Subject: [PATCH] Stabilize downloading of resources for integration tests (#488) ### What's done: * Stabilize downloading of resources for integration tests --- save-core/build.gradle.kts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/save-core/build.gradle.kts b/save-core/build.gradle.kts index b35a4946..d31c9dc9 100644 --- a/save-core/build.gradle.kts +++ b/save-core/build.gradle.kts @@ -77,11 +77,14 @@ tasks.withType>().forEach { } tasks.register("downloadTestResources") { - src(listOf( - Versions.IntegrationTest.ktlintLink, - Versions.IntegrationTest.diktatLink, - )) - dest("../examples/kotlin-diktat") + src { + listOf( + Versions.IntegrationTest.ktlintLink, + Versions.IntegrationTest.diktatLink, + ) + } + dest { "../examples/kotlin-diktat" } + retries(3) doLast { Files.move( file("../examples/kotlin-diktat/diktat-${Versions.IntegrationTest.diktat}.jar").toPath(),