Building / debugging two plugins from one project

Answered

I want to have a project containing source with gradle script for two (or more) plugins - first one containing core code, which is suitable for several IntelliJ versions (like 2018-2020), and a second one containing relatively low-level stuff, like startup activities or FS listeners, and depending from the core one.

What I want to achieve is building and debugging both plugins from the one instance of IntelliJ. I've created a new project, added these plugins as "module from source", but can't go further - after I built core plugin, dependent plugin build fails to find a core one, adding a module dependency in project props didn't help

Or is there a better way to have such a "stable" core code and several version-dependent plugins dependent from it, better than having individual Git branch for each of the versions, whih most likely would become a hell when we'll get more than 3 versions supported?

0
2 comments

You can take a look at Rust plugin for splitting up functionality https://github.com/intellij-rust/intellij-rust

There's a number of other useful plugin's sources to look at https://github.com/JetBrains/gradle-intellij-plugin/#examples

With regarding to support multiple platform versions with breaking changes, we usually recommend branching.

0
Avatar
Permanently deleted user

Thanks for the answer, I'll look at Intwllij-Rust code and try doing smth similar. Unfortunately, branching doesn't suit for the project I work on, and that would be really cool, if one day IntelliJ will have more convenient way to support several "thin" version-dependent moduls at once.

0

Please sign in to leave a comment.