https://kotlinlang.org logo
#gradle
Title
# gradle
c

Ciaran Sloan

11/29/2023, 7:42 PM
I'm applying KSP to a convention plugin that I'm using on multiple modules, but I want to make some configuration to the
KspConfiguration
. I somehow don't seem to be able to resolve that in my plugin, where could I be going wrong?
Copy code
class ExamplePlugin: Plugin<Project> {

    override fun apply(target: Project) {
        with(target) {
            pluginManager.apply("com.google.devtools.ksp")

            // KspExtension doesn't resolve
            extensions.configure<KspExtension> {}

            // ksp bloc doesnt resolve
            ksp {

            }
        }
    }
e

ephemient

11/29/2023, 7:43 PM
you need to add the ksp plugin as a run- or compile-time dependency of your plugin
c

Ciaran Sloan

11/29/2023, 7:52 PM
got it, makes sense
I wonder how I can resolve that? I'm getting
Could not find com.google.devtools.ksp:1.9.20-1.0.14
when I add it as a compile time dependency
Nevermind, I've found this resource that explains exactly how I can resolve this dependency
14 Views