How to enable gradle in an IntelliJ-plugin project

2019-06-27 13:58发布

When you create an IntelliJ 13 plugin project you can't also choose to make it a Gradle project. How do you start a plugin development project that is backed by Gradle?

1条回答
女痞
2楼-- · 2019-06-27 14:43

The current version of IntelliJ, 13.1.2, only supports Gradle-integration up to version 1.10. Configure this version of Gradle as your project's gradle home.

Now start by creating a build.gradle file in your project root.

If you try to run the gradle build in IntelliJ now you will get the message: "Error running build: Module 'your-plugin' is not backed by gradle". Close and reopen your project.

You will now have the option to import your project.

Viola!

查看更多
登录 后发表回答