Cannot find ArtifactManager
Answered
I am currently trying to make myself a plugin for IntelliJ, for which I need the list of artifacts for the current project.
I found the following article on this forum: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206783915-Maia-how-to-get-list-of-Artifacts-
But when I try to use the ArtifactManager class, I can't find the reference package to import. Where do I get the reference? Or is there another way of getting all of the existing artifacts?
Thanks for your help in advance!
Simon RS.
Please sign in to leave a comment.
ArtifactManager class belongs to the com.intellij.java module. Make sure you've added a dependency to it in your Gradle configuration, as well as in the plugin.xml file.
Oops, I didn't do that. Do I have to specify a version for that module? If so, where can I find it?
No, you don't have to – it's a built-in module provided with the IJ SDK.
Alright, everything is working now.
Thank you very much for the quick and helpful answer!