Hello, I'm currently writing an IntelliJ plugin and I'm leveraging GeneratorNewProjectWizard to create new project generators for both IntelliJ and PyCharm. I'm using NewProjectWizardDirectoryGeneratorAdapter to turn that into a DirectoryProjectGenerator and registering it in plugin.xml as an optional dependency like so:
<depends optional="true" config-file="myPluginId-python.xml>com.intellij.modules.python></depends/>
myPluginId-python.xml (same folder):
<directoryProjectGenerator implementation="com.myorg.path.DirectoryProjectGeneratorClass" />
However, when I have intelli.type set to “IC” in build.gradle.kts, and I don't have “PythonCore” plugin declared in intellij.plugins, then I am unable to compile my code because NewProjectWizardDirectoryGeneratorAdapter could not be found. I want my plugin to be able to be loaded on IntelliJ (using the ModuleBuilder adapter for GeneratorNewProjectWizard) without relying on the PythonCore plugin, whilst also allowing PyCharm to have the directory generator if it is installed on that IDE instead.
I believe I've followed the documentation for declaring optional dependencies. Am I doing something wrong?