Dependencies in plugin.xml overwriting those in build.gradle

Answered

Hello,

I'm publishing my fork of someone else's plugin and am having trouble getting dependencies to cooperate between plugin.xml and build.gradle. I've observed that my plugin needs at least one dependency in plugin.xml to be accepted by the marketplace (even though it runs fine in the sandbox). However, adding a dependency tag such as 

<depends>com.intellij.modules.lang</depends>

seems to prevent the dependencies in build.gradle from being accessed. 

Specifically, I get this error whenever I have at least one dependency in plugin.xml: 

java.lang.NoClassDefFoundError: com/intellij/debugger/engine/managerThread/DebuggerCommand

My source code is available here: https://github.com/chotzen/java-visualizer-intellij-plugin/

 

Thank you for your help,

Devin 

1 comment
Comment actions Permalink

Java plugin needs to be declared explicitly in plugin.xml since 2019.2, see https://blog.jetbrains.com/platform/2019/06/java-functionality-extracted-as-a-plugin/

Also, your build.gradle file specifies target platform 2020.1.2, but your plugin.xml "since-build" is explicitly set to 182.

Please see https://jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for some background information

0

Please sign in to leave a comment.