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.

0
4 comments

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.

1

Oops, I didn't do that. Do I have to specify a version for that module? If so, where can I find it?

0

No, you don't have to – it's a built-in module provided with the IJ SDK.

0

Alright, everything is working now.

Thank you very much for the quick and helpful answer!

0

Please sign in to leave a comment.