Skip to content

Commit

Permalink
Use explicit Gradle DependencyHandlerEnvorderPlatform
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dragetd authored May 2, 2024
1 parent 3a99eb0 commit 822dd46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/setup/koin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
}
```
Expand Down

0 comments on commit 822dd46

Please sign in to comment.