How to enable gradle in an IntelliJ-plugin project

妖精的绣舞 提交于 2019-12-10 15:46:03

问题


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:


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!



来源:https://stackoverflow.com/questions/23458572/how-to-enable-gradle-in-an-intellij-plugin-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!