Create plugin with different optional bundledPlugin dependencies
Answered
How is it possible to create a plugin with different bundledPlugins, for example with bundled Kotlin plugin, bundled PHP plugin and so on.
I need this, because I also want to use these as optional dependencies in the plugin.xml with the optional=true mechanism.
Thanks for your help!
Please sign in to leave a comment.
In order to create that, you should involve a multi-module architecture.
Inside the root module, create submodules, such as `kotlin` and `php`, which have their own `build.gradle.kts` files, where you apply the `org.jetbrains.intellij.platform.module` plugin. That way, you're able to separate specific implementations from each other and make them optional, still involving different bundled plugins.
See:
- https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html#multi-module-project-structure
- https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html