kevin
04/29/2024, 12:42 PMdesktopMain.dependencies {
implementation(compose.desktop.currentOs)
implementation(compose.material3)
implementation(compose.materialIconsExtended)
implementation(platform(rootProject.libs.koin.bom))
When I do this, it shows ‘platform’ is deprecated and I get an exception when importing the Gradle project
* What went wrong:
Cannot convert the provided notation to an object of type Dependency: map(valueof(DependencyValueSource)).
The following types/formats are supported:
- String or CharSequence values, for example 'org.gradle:gradle-core:1.0'.
- Maps, for example [group: 'org.gradle', name: 'gradle-core', version: '1.0'].
- FileCollections, for example files('some.jar', 'someOther.jar').
- Projects, for example project(':some:project:path').
- ClassPathNotation, for example gradleApi().
It all works if I don’t use the BOM and it also works in a ‘standard’ dependencies definition but not in desktop.dependencies or commonMain.dependencies, which I think are defined by the Kotlin multi-platform plugin