How to add external maven repository as dependency to my plugin?

Answered

I've read:

But still I'm not sure how to add properly external dependency to plugin.

I want to add this: https://github.com/bbaumgartner/jtoggl

I can copy jar directly or use maven repository. I'm asking about best practices.

Thanks

0
3 comments

IntelliJ platform currently doesn't support external dependencies at runtime. All libraries used by your plugin should be either bundled into 'lib' directory of your plugin distribution, or come from other plugins your depend on or the IntelliJ core itself.

'depends' tag in plugin.xml file may refer only to other plugins or the platform modules.

0
Avatar
Permanently deleted user

Have you tried adding it through Libraries Menu ?

 

0

Enakin,

this is indeed allows you to download and use a library from Maven repository, but you'll still need to pack it with your plugin to make it available at runtime.

0

Please sign in to leave a comment.