I previously had a build-convention set up to apply config to all compose projects (e.g. compiler metrics).
I’m having trouble identifying the right library to import into my build-convention build.gradle.kts so that I get access to the classes for configuration.
This is what I have right now after bumping to Kotlin 2.0.0-rc2 and Compose Multiplatform 1.6.10-beta3
libs.versions.toml
[versions]
compose = "1.6.10-beta03"
kotlin = "2.0.0-RC2"
[libraries]
compose-gradle = { module = "org.jetbrains.compose:compose-gradle-plugin", version.ref = "compose" }
compose-compiler = { module = "org.jetbrains.kotlin:kotlin-compose-compiler-plugin", version.ref = "kotlin" }
kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
build-logic/build.gradle.kts
dependencies {
implementation(libs.compose.compiler)
implementation(libs.compose.gradle)
implementation(libs.kotlin.gradle)
}
build-logic-src/main/kotlin/compose-conventions.gradle.kts
pluginManager.withPlugin("org.jetbrains.kotlin.plugin.compose") {
extensions.configure<org.jetbrains.kotlin.gradle.compose.compiler.gradle.ComposeCompilerGradlePluginExtension>() {
// Apply config...
}
}
But the import for
org.jetbrains.kotlin.gradle.compose.compiler.gradle.ComposeCompilerGradlePluginExtension
isn’t working. Is there something I’ve missed with this?