How to access PluginDependenciesSpecScope while create custom gradle plugin

Viewed 34

I am creating a custom gradle plugin and I need to add a pluginId with version

in .gradle files we do it like

plugins{
    id("com.google.devtools.ksp") version "1.7.0-1.0.6"
}
//plugins block has PluginDependenciesSpecScope 

I want to achieve the same while extending from Plugin, not sure how to access PluginDependenciesSpecScope to achieve the same

class ComposePlugin : Plugin<Project> {
    override fun apply(project: Project) {
        project.plugins.apply {
            apply("com.google.devtools.ksp")
            //not getting option to add version 
        }
    }
}

0 Answers
Related