From 2a0ac60178e54ea9aef12dab4e026671e215d706 Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Wed, 11 Sep 2024 16:45:29 +0200 Subject: [PATCH] [KLIB] Restore removed function to keep ABI compatibility with kotlinx-benchmark ^KT-71414 Fixed --- .../metadata/resolver/KotlinLibraryResolver.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/compiler/util-klib-metadata/src/org/jetbrains/kotlin/library/metadata/resolver/KotlinLibraryResolver.kt b/compiler/util-klib-metadata/src/org/jetbrains/kotlin/library/metadata/resolver/KotlinLibraryResolver.kt index 2fe0e6518c17a..633a65f2e88dd 100644 --- a/compiler/util-klib-metadata/src/org/jetbrains/kotlin/library/metadata/resolver/KotlinLibraryResolver.kt +++ b/compiler/util-klib-metadata/src/org/jetbrains/kotlin/library/metadata/resolver/KotlinLibraryResolver.kt @@ -29,6 +29,21 @@ interface KotlinLibraryResolver { duplicatedUniqueNameStrategy, ).resolveDependencies() + @Deprecated("Restored to keep ABI compatibility with kotlinx-benchmark Gradle plugin (KT-71414)", level = DeprecationLevel.HIDDEN) + fun resolveWithDependencies( + unresolvedLibraries: List, + noStdLib: Boolean = false, + noDefaultLibs: Boolean = false, + noEndorsedLibs: Boolean = false, + ): KotlinLibraryResolveResult = + resolveWithDependencies( + unresolvedLibraries, + noStdLib, + noDefaultLibs, + noEndorsedLibs, + DuplicatedUniqueNameStrategy.DENY + ) + fun resolveWithoutDependencies( unresolvedLibraries: List, noStdLib: Boolean = false,