Plugin Dependencies in Gradle

Hello everyone,

Since I want to use the service of another IntelliJ Plugin in my own plugin I aspire to extend the classpath of the IntelliJ Platform SDK in my gradle buildscript as described in http://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html.

Adding the .jar of the plugin providing the service to the gradle dependencies only seems to add the plugin as a library. As expected this fails at runtime. So I assume the 'org.jetbrains.intellij' gradle-plugin would offer a way to alter the classpath as required.

Disturbingly I don't seem to be able to get onto a path to solve this problem.

Thank you for your help!

Julian

2 comments
Comment actions Permalink
Official comment

Hi Julian,

Have you solved the issue by adding the jar as a plugin dependency via intellij.plugins = [file('Plugin.jar')]? After that Gradle plugin should add the plugin to compile classpath and copy it to plugin's sandbox, so IDE will load it in runtime as well.

Comment actions Permalink

Hi Alexander,

Thank you for your response! Yes via intellij.plugins = [file('Plugin.jar')] exerything works as expected.

0

Please sign in to leave a comment.