Skip to content

Commit

Permalink
Stabilize downloading of resources for integration tests (#488)
Browse files Browse the repository at this point in the history
### What's done:
* Stabilize downloading of resources for integration tests
  • Loading branch information
kgevorkyan authored Feb 7, 2023
1 parent 8ba81a2 commit 542bf1a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions save-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,14 @@ tasks.withType<KotlinCompile<*>>().forEach {
}

tasks.register<Download>("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(),
Expand Down

0 comments on commit 542bf1a

Please sign in to comment.