Andry Max
Andry Max

Reputation: 25

How to add a custom gradle plugin to Intellij Idea?

I created a simple gradle plugin according to the documentation.

 class MyBuild implements Plugin<Project> {
    @Override
    void apply(Project project) {
        project.task("test") {
            doLast{
                println 'Yeaaa boy!'
            }
        }
    }
}
apply plugin: MyBuild

But the plugin does not appear at the Idea Gradle toolar: enter image description here

I have also tried to add the following code, but it does not make any diffirence:

idea {
    project {
        jdkName = '1.8'
        languageLevel = '1.8'
    }
    apply plugin: MyBuild
}

What should I do to make it appear there?

Upvotes: 0

Views: 170

Answers (1)

Andrey
Andrey

Reputation: 16391

What exactly do you expect to see there? For example, I see the custom task, that the plugin adds here, in Gradle tool window:

enter image description here

Upvotes: 1

Related Questions