From 822dd4638da044c77cc78e2cc3da3ee8fec6f48e Mon Sep 17 00:00:00 2001 From: Michael G Date: Thu, 2 May 2024 19:44:54 +0200 Subject: [PATCH] Use explicit Gradle DependencyHandlerEnvorderPlatform According to Jetbrains, using 'platform()' is deprecated and one should use the explicit 'project.dependencies.platform()' instead. See https://youtrack.jetbrains.com/issue/KT-58759/Deprecate-platform-enforcedPlatform-and-other-related-to-Gradle-DependencyHandler-methods-in-KotlinDependencyHandler ii --- docs/setup/koin.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/setup/koin.md b/docs/setup/koin.md index 5e18503be..8bb1017a2 100644 --- a/docs/setup/koin.md +++ b/docs/setup/koin.md @@ -35,7 +35,7 @@ Starting from 3.5.0 you can use BOM-version to manage all Koin library versions. Add `koin-bom` BOM and `koin-core` dependency to your application: ```kotlin -implementation(platform("io.insert-koin:koin-bom:$koin_version")) +implementation(project.dependencies.platform("io.insert-koin:koin-bom:$koin_version")) implementation("io.insert-koin:koin-core") ``` If you are using version catalogs: @@ -51,7 +51,7 @@ koin-core = { module = "io.insert-koin:koin-core" } ``` ```kotlin dependencies { - implementation(platform(libs.koin.bom)) + implementation(project.dependencies.platform(libs.koin.bom)) implementation(libs.koin.core) } ```