Installing custom library using a plugin

I have an action button where, when a user clicks on it, I would like it to download and add a third party library to their project. How would I do this? I'm thinking of something like Android Studio's component installer or some kind of package manager.

 

3 comments
Comment actions Permalink

Where do you want to download the library from? Is it a Maven artifacts repository or something else?

0
Comment actions Permalink

It is my own .jar file that I would like to be able to distribute via the plugin. I am capable of hosting it. If it is possible to include the library in the plugin itself and allow a user to use it or import it into their project, that should also be fine.

0
Comment actions Permalink

Yes, it's possible to bundle a library JAR with the plugin, just add it to the dependencies list of your plugin module.

0

Please sign in to leave a comment.