JSON plugin dependency cannot be resolved?
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.24Note that the DataSonnet Mapper 3.0.6 plugin cannot be installed into IntelliJ IDEA Ultimate IU-243.15521.24 without mandatory
com.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?
Please sign in to leave a comment.
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.
Hi Karol Lewandowski , we have a similar issue with the next plugin version (2024.3.0).
Plugin page
Compatibility verification shows the following result:
The plugin was added as a dependency (build.gradle.kts):
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:
Can you please help to solve this issue?
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!
Hi, Natalia Melnikova , thanks for your answer,
The plugin was added as a dependency (build.gradle.kts):
in plugin.xml:
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
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.
Hi Karol Lewandowski , Natalia Melnikova
The plugin was released, thanks for your help
So far, it's still the same mistake, should I ignore it?
If you have added the dependency
com.intellij.modules.json
, then you can ignore this error.