This message was deleted.
# compose
s
This message was deleted.
v
This is my current Compose Plugin
Copy code
class ComposeMultiplatformPlugin : Plugin<Project> {
    override fun apply(target: Project) = with(target) {
        with(pluginManager){
            apply(libs.findPlugin("composeMultiplatform").get().get().pluginId)
            apply(libs.findPlugin("composeCompiler").get().get().pluginId)
        }

        val composeDeps = extensions.getByType<ComposeExtension>().dependencies

        extensions.configure<KotlinMultiplatformExtension> {
            sourceSets.apply {
                commonMain {
                    dependencies {
                        implementation(composeDeps.runtime)
                        implementation(composeDeps.foundation)
                        implementation(composeDeps.ui)
                        implementation(composeDeps.material3)
                        implementation(composeDeps.materialIconsExtended)
                        implementation(libs.findLibrary("kotlinx-immutable-collections").get())
                    }
                }
            }
        }
    }
}
s
Why the deleted question?
v
Because i solved it, so deleted it
👎 2
s
Isn't that like the opposite of what the purpose of this slack is? What if someone else has the same question?
plus1 1
v
Sorry, my bad
s
You can help by writing the original question in this thread again, so when people do a text search for the same question, they'll end up here. You can also post what your solution was, for the same reason.
v
Question - How can i configure
composeCompiler
in a Gradle Convention Plugin, I am unable to find a method to do so
🌟 5
Solution - Had to add this to my
build-logic
gradle file as a compileOnly dependency
Copy code
compose-compiler-gradlePlugin = { group = "org.jetbrains.kotlin", name = "compose-compiler-gradle-plugin", version.ref = "kotlin" }
🌟 4
s
Super nice, thank you 😊