This message was deleted.
# community-support
s
This message was deleted.
m
Use the "type unsafe" API.
c
Not entirely sure if this works for buildSrc - doing it using a composite build - drop something like this in your settings.gradle.kts:
Copy code
dependencyResolutionManagement {
    versionCatalogs {
        create("libs") {
            from(files("../gradle/libs.versions.toml"))
        }
    }
}
i
thx @melix. The above link shows how to retrieve and add the dependency, for me it was
kotlinCompilerExtensionVersion
that is required for the Android config. Your hint helped me and I made it work by retrieving version from the catalog like this:
Copy code
val catalogs = extensions.getByType<VersionCatalogsExtension>()
        val libs = catalogs.named("libs")
        kotlinCompilerExtensionVersion = libs.findVersion("kotlinCompilerExtensionVersion").get().toString()