如何共享 Intellij 插件
How to share an Intellij Plugin
我创建了一个 IntelliJ 插件,但我想与他人分享。我不想在 JetBrains 插件存储库上发布它,因为该插件仅用于琐碎的功能和学术用途。
有没有分享插件的方法?例如,我们共享一个 Android(共享 APK 文件)应用程序。这样我就不必分享整个代码了?
在您的插件项目中单击 Build | Prepare plugin for Deployment
。
这将在您的项目根目录下创建一个 zip 或 jar,这正是您想要的。
请您的朋友通过 Settings | Plugins | Install plugin from disk
和 select jar(或 zip)安装它,单击 OK
,重新启动 IntelliJ IDEA,您的插件将工作。
如果您的插件不包含 Gradle
- 通过调用 Build 创建您的项目 |构建项目或构建 |构建模块 .
- 生成
ZIP
或 JAR
文件。在主菜单中,select Build |为部署准备插件模块。
现在您会在您的根目录下找到一个.zip
或.jar
文件。您可以将此文件发送给您的朋友。
If the plugin module does not depend on any libraries, a .jar
archive
will be created. Otherwise, a .zip
archive will be created including
all the plugin libraries specified in the project settings.
注意:要了解有关发布 IntelliJ 插件的更多信息,请阅读 IntelliJ documentation (Deploying a Plugin)。
我创建了一个 IntelliJ 插件,但我想与他人分享。我不想在 JetBrains 插件存储库上发布它,因为该插件仅用于琐碎的功能和学术用途。
有没有分享插件的方法?例如,我们共享一个 Android(共享 APK 文件)应用程序。这样我就不必分享整个代码了?
在您的插件项目中单击 Build | Prepare plugin for Deployment
。
这将在您的项目根目录下创建一个 zip 或 jar,这正是您想要的。
请您的朋友通过 Settings | Plugins | Install plugin from disk
和 select jar(或 zip)安装它,单击 OK
,重新启动 IntelliJ IDEA,您的插件将工作。
如果您的插件不包含 Gradle
- 通过调用 Build 创建您的项目 |构建项目或构建 |构建模块 .
- 生成
ZIP
或JAR
文件。在主菜单中,select Build |为部署准备插件模块。
现在您会在您的根目录下找到一个.zip
或.jar
文件。您可以将此文件发送给您的朋友。
If the plugin module does not depend on any libraries, a
.jar
archive will be created. Otherwise, a.zip
archive will be created including all the plugin libraries specified in the project settings.
注意:要了解有关发布 IntelliJ 插件的更多信息,请阅读 IntelliJ documentation (Deploying a Plugin)。