JSON plugin dependency cannot be resolved?

Answered

I just uploaded a new version of the plugin and the verification failed:

IntelliJ IDEA Ultimate 2024.3 eap (243.15521.24)1 missing mandatory dependency. 1 possible compatibility problem, some of which may be caused by absence of dependency in the target IDE IU-243.15521.24. 1 plugin configuration defect (V1.377) (Restart)

DataSonnet Mapper 3.0.6 depends on module com.intellij.modules.json that couldn't be resolved with respect to IntelliJ IDEA Ultimate IU-243.15521.24

Note that the DataSonnet Mapper 3.0.6 plugin cannot be installed into IntelliJ IDEA Ultimate IU-243.15521.24 without mandatorycom.intellij.modules.json

Found 1 incompatibility with IntelliJ IDEA Ultimate IU-243.15521.24, some of which may be caused by the missing dependencies.

I do have <depends>com.intellij.modules.json</depends> in my plugin.xml as this page suggests: https://plugins.jetbrains.com/docs/intellij/api-changes-list-2024.html#json-plugin-new-20243

Is there anything else I need to do?

2
10 comments

Hi Eugene,

We have an issue with the Plugin Verifier run on JetBrains Marketplace. It shows a false positive. If the plugin works at runtime (please verify), you can ignore this problem.

1

Org Competency R&D Hybris Idea Plugin It seems you need to declare an explicit dependency on com.intellij.modules.json to ensure compatibility with version 2024.3. Starting with version 2024.3, there is a dedicated JSON plugin, replacing the JSON module that was previously part of the platform.

 

Upd: make sure you declare the dependency in the plugin.xml file as well! 

1

Hi,

Your previous version didn't depend on com.intellij.modules.json. Now it is correct. My previous comment is still valid:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/21479962703890/comments/21488922222610

You can ignore these errors for now, if it runs at runtime.

1

Hi Karol Lewandowski , we have a similar issue with the next plugin version (2024.3.0).
Plugin page
Compatibility verification shows the following result:
 

2 compatibility problems:
Package 'com.intellij.json' is not found (1 problem)
Package 'com.jetbrains.jsonSchema' is not found (1 problem)

The plugin was added as a dependency (build.gradle.kts):

plugin("com.intellij.modules.json:243.19420.21")

Due to this issue, the new version isn't published, the plugin itself is working in runtime.
The same compatibility results when that plugin is defined in:

  1. in plugin.xml
  2. in bundledPlugins (build.gradle.kts)


Can you please help to solve this issue?

 

0

Hi, Natalia Melnikova , thanks for your answer, 
The plugin was added as a dependency (build.gradle.kts):

plugin("com.intellij.modules.json:243.20847.40")

and:
bundledPlugins("com.intellij.modules.json")

in plugin.xml:

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

But there are still 2 compatibility problems:
Package 'com.intellij.json' is not found (1 problem)
Package 'com.jetbrains.jsonSchema' is not found (1 problem)

What else can we do from our side?
cc Karol Lewandowski

0

So far, it's still the same mistake, should I ignore it?

0

If you have added the dependency com.intellij.modules.json, then you can ignore this error.

0

Sorry to resurrect this old thread, but I'm still seeing this issue. Just to clarify, is all that's required is to add the dependency to the plugin.xml, i.e. <depends>com.intellij.modules.json</depends> ? Or do I need to add anything else to build.gradle? (I'm still using the old 1.x style, haven't migrated to 2.x yet)

 

 

0

Hi Eugene,

Yes, it's enough to add it in plugin.xml.

0

Please sign in to leave a comment.