I have developed a custom Intellij plugin which depends on another open source plugin already installed in Intellij. My plugin reuses 2 classes/services in runtime initialized for the open source plugin.
It worked correctly in Intellij 2019 and below.
However, in Intellij 2020+, I'm getting the following error:
com.intellij.diagnostic.PluginException: Cannot create class org.zalando.intellij.swagger.index.swagger.SwaggerFileIndex [Plugin: org.zalando.intellij.swagger]
Caused by: java.lang.AssertionError: ID with name 'SwaggerFileIndex' requested for plugin org.zalando.intellij.swagger but registered for custom plugin
Is this a new Assertion rule specified for Intellij 2020, that plugins can't reuse objects initialized for other plugins?
Is there a solution/workaround for this?