How to build Intellij ce with plugin

Answered

Hi,

I have a plugin which works with intellij ce. I follow the plugin deployment steps in the documentation, launch intellij ce and install the plugin jar from disk. I've also managed to build intellij community edition from source code and now I want to build intellij ce from source code, with my plugin already installed. I currently have my plugin project's root folder in the "/plugins" directory, however it doesn't work. The plugin.xml file is present, how do I make it so intellij ce will build with my plugin installed?

4 comments
Comment actions Permalink

In community/build/groovy/org/jetbrains/intellij/build/IdeaCommunityProperties.groovy add your plugin in line where it defines bundled plugins

productLayout.bundledPluginModules = BUNDLED_PLUGIN_MODULES

There are also plans to make this easier by defining "bundles" (Base IDE + set of plugins), please watch https://youtrack.jetbrains.com/issue/MP-2788

 

0
Comment actions Permalink

Awesome, this works. Thanks a lot

0
Comment actions Permalink

Hey, so I'm working with this again and trying to understand how it works exactly.

In the BaseIdeaProperties.groovy file (where BUNDLED_PLUGIN_MODULES list is defined) if I remove "intellij.ant", for example, from the bundled plugins list and rebuild the project, the ant plugin is still present. Is there something I'm missing with this?

0
Comment actions Permalink

Ok I think I get it now.

For anyone googling, I had to add the module as a dependency to intellij.idea.community.main module.

0

Please sign in to leave a comment.