I wrote an Intellij Ide plugin and added several classes as dependency to the project:
include ':model', ':code-annotation-metainfo-lib'
project(':model').projectDir = new File("../../code-annotation-metainfo-lib/model")
project(':code-annotation-metainfo-lib').projectDir = new File("../../code-annotation-metainfo-lib/code-annotation-metainfo-lib")
the 'code-annotation-metainfo-lib' contains the class MetaInfoAPIImpl that gets initialized in one of the classes of my plugin.
When I try to run die plugin either by the gradle 'runIde' task or directly installing it from disk I get the error message:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class communication.MetaInfoAPIImpl
There are a few other errors but ultimately I figured they are all caused by this one.
My question is, do Intellij plugin have general problem with dependencies added like this or is my problem something else?