From 97546fbb716129a2990c538e1a0b7debd4401890 Mon Sep 17 00:00:00 2001 From: monosoul Date: Sat, 4 Nov 2023 18:31:05 +0100 Subject: [PATCH] add coverage caching issue workaround --- .../src/main/kotlin/coverage-convention.gradle.kts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/buildSrc/src/main/kotlin/coverage-convention.gradle.kts b/buildSrc/src/main/kotlin/coverage-convention.gradle.kts index bbd1445..a21c620 100644 --- a/buildSrc/src/main/kotlin/coverage-convention.gradle.kts +++ b/buildSrc/src/main/kotlin/coverage-convention.gradle.kts @@ -1,3 +1,6 @@ +import java.lang.Thread.sleep +import java.time.Duration + plugins { kotlin("jvm") jacoco @@ -12,4 +15,12 @@ tasks { } dependsOn(withType()) } + + withType { + doLast { + sleep( + Duration.ofSeconds(2).toMillis() + ) + } + } }