Hi. In multimodule projects, where one of the mod...
# intellij-plugins
n
Hi. In multimodule projects, where one of the modules is an intellij plugin built with the Gradle plugin for intellij plugins, how do I declare dependencies in another module so that they can use IntelliJ types declared in the dependencies of the IntelliJ plugin? E.g. I have a project that contains subprojects for backend servers, an intellij plugin, and functional tests. The intellij plugin code is structured so that the core logic is not statically coupled to the static aspects of intellij (message bus, notifications, event queues, threading model, etc.), but the core does depend on abstract and value types declared by IntelliJ. The subproject for the functional tests depends on the subprojects for the servers, and intellij plugin, and instantiates the core of the servers and of the intellij plugin in a simulated environment. However, I cannot work out how to declare the Gradle dependencies for the functional tests to be able to refer to IntelliJ classes. In the intellij plugin subproject, the dependencies are declared by the Gradle plugin not explicit in the build script. Anyone know how to declare them?
Anyone have a suggestion? Anyone from jetbrains can help?
b
You may have more chance asking in the dedicated Slack I'm not 100% sure this will answer your question but if you look at our project as an example, we do have an IJ plugin, which has unit tests. SQLDelight is another example.
n
Thank you for the pointers.
👍 1