From 59960c92dc7e059e386347b29927fc49d0392b84 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 20 Apr 2021 10:24:53 +0200 Subject: build: Add workaround for kotlinx-benchmark with Gradle 7 This change adds a quick workaround for getting kotlinx-benchmark to work again with Gradle 7. See https://github.com/Kotlin/kotlinx-benchmark/issues/39. --- .../buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'simulator') diff --git a/simulator/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts b/simulator/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts index d3bb886d..8623e8da 100644 --- a/simulator/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts +++ b/simulator/buildSrc/src/main/kotlin/benchmark-conventions.gradle.kts @@ -55,6 +55,13 @@ benchmark { } } +// Workaround for https://github.com/Kotlin/kotlinx-benchmark/issues/39 +afterEvaluate { + tasks.named("jmhBenchmarkJar") { + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + } +} + dependencies { implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime-jvm:0.3.0") } -- cgit v1.2.3