kotlin-multiplatform-oidc
kotlin-multiplatform-oidc copied to clipboard
Gradle build fails with "Cannot convert the provided notation to an object of type Dependency: org.gradle.accessors.dm.LibrariesForLibs$OidcLibraryAccessors"
trafficstars
Hi guys,
I am getting the following error including the implementation(..) in common libraries...
* Where:
Build file '.........../composeApp/build.gradle.kts' line: 78
* What went wrong:
Cannot convert the provided notation to an object of type Dependency: org.gradle.accessors.dm.LibrariesForLibs$OidcLibraryAccessors@3f08cd2a.
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().
// libs.versions.toml
oidc-appsupport = { module = "io.github.kalinjul.kotlin.multiplatform:oidc-appsupport", version.ref = "oidc" }
//build.gradle.kts
kotlin {
....
sourceSets {
....
commonMain.dependencies {
.....
implementation(libs.oidc)
}
}
}
// gradle --version
------------------------------------------------------------
Gradle 8.6
------------------------------------------------------------
Build time: 2024-02-02 16:47:16 UTC
Revision: d55c486870a0dc6f6278f53d21381396d0741c6e
Kotlin: 1.9.20
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 21.0.2 (Oracle Corporation 21.0.2+13-58)
OS: Linux 6.5.0-1020-oem amd64
Hi, please try again with
implementation(libs.oidc.appsupport)