Unable to prepare IntelliJ plugin for deployment
Hi everyone!
For the last couple of days I'm having trouble packaging my (for now small) IntelliJ plugin. I followed the guide to get started using Gradle and was able to add a ToolWindow and do my plugin stuff in it. I am also able to run an IntelliJ CE instance to test this plugin without any problem.
Here is the problem, the documentation is saying to select 'Prepare plugin module <module-name> For Deployment', but I do not have such an option. (https://www.jetbrains.com/help/idea/preparing-plugins-for-publishing.html)
I'm assuming there is a very logical explenation for this why that option simply isn't showing, but since the documentation on that page is very slim I'm lost.
请先登录再写评论。
> Here is the problem, the documentation is saying to select 'Prepare plugin module <module-name> For Deployment'
That documentation is for projects that don't use Gradle. Here is complete documentation for Gradle-based plugins: http://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system.html
run commond: ./gradlew assemble, can genrate *.zip which you want.
Somehow they neglect to explain this in the complete documentation for Gradle-based plugins, but there is a gradle-intellij-plugin task you can run to assemble the plugin into a zip or jar file. Just open the terminal and run:
The zip or jar file will be saved in "build/distributions"
Alexander Zolotov, can this be added to the documentation? It seems kind of important. Maybe you could add it here:
https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/deployment.html#deploying-a-plugin-with-gradle
Asher, we've added a short section to the guide about manual distribution. Thanks.