From f159a424f5a4f182862344d6c72385d9bfc483f7 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Tue, 9 Mar 2021 05:02:00 +0100 Subject: [PATCH] [build][plugin] kotlin native benchmarking plugin adds dependency kotlinx.cli as project dependency --- .../kotlin/benchmark/KotlinNativeBenchmarkingPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/KotlinNativeBenchmarkingPlugin.kt b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/KotlinNativeBenchmarkingPlugin.kt index 7a1b0df165d..1ec9172a7ec 100644 --- a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/KotlinNativeBenchmarkingPlugin.kt +++ b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/KotlinNativeBenchmarkingPlugin.kt @@ -125,8 +125,8 @@ open class KotlinNativeBenchmarkingPlugin: BenchmarkingPlugin() { override fun NamedDomainObjectContainer.additionalConfigurations(project: Project) { jvmMain.dependencies { implementation(project.files("${project.findProperty("kotlin_dist")}/kotlinc/lib/kotlin-stdlib-jdk8.jar")) - val cliJvmJar = "${project.currentKotlinNativeDist}/libs/kotlinx.cli-jvm-${project.kotlinVersion}.jar" - implementation(project.files(cliJvmJar)) + if (project.hasProperty("kotlin_dist")) + implementation(project(":endorsedLibraries:kotlinx.cli")) } }