Search code examples
gradleintellij-ideapluginsintellij-plugin

how to add `intellij gradle plugin` to my custom plugin dependency


I create a intellij plugin using recommended gradle.

I want to use gradle projectResolve in my plugin then I extends my class from org.jetbrains.plugins.gradle.service.project.GradleProjectResolverExtension but it's not exist. I add bellow code to my gradle :

intellij {
    plugins = ['org.jetbrains.plugins.gradle']
}

but I receive this error:

Cannot find builtin plugin org.jetbrains.plugins.gradle for IDE:

I add bellow library it's work but is too old.

    implementation 'com.github.adedayo.intellij.sdk:gradle:142.1'

Solution

  • gradle plugin is bundled plugin and can add like

    intellij {
        plugins = ['gradle']
    }