Include plantuml as plugin gradle dependecy
Answered
I would like to use plantuml as a library for my plugin. I'm using gradle to build my plugin, but I'm having trouble accomplishing this.
Currently, I have this in my build.gradle file:
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
implementation files('libs/plantuml.jar')
}
However, I still cant access those files:

What am I missing?
Thank you.
Please sign in to leave a comment.
So I've added it to the classpath and successfully executed runIde gradle task. However, when I tried to install the plugin on a different machine, I got the following message:
Have you tried to add PlantUML from Maven repository?
https://mvnrepository.com/artifact/net.sourceforge.plantuml/plantuml/8059
Jakub Chrzanowski Thank you for your reply.
How do you build and distribute this plugin for tests?
My build.gradle looks like this:
I run the task distPlugin to export the zip that contains the plugin. Then I install the plugin from the disk by selecting the .zip
Locally I just run the 'runIde' gradle task to test it
Can you try with the gradle buildPlugin task?
IT'll create a zip artifact in build/distribution/ directory
I was testing on macOS and have just switched back to windows. Used that task to build the plugin and now I'm getting this:
So I am not sure if that fixed the last problem but, now I'm getting a similar one with the com.intellij files
This is a very different issue. AbstractBaseJavaLocalInspectionTool class belongs to the java module: Plugin Compatibility
As I see, you have the dependency to the java plugin in your Gradle.
Is the proper dependency also available in your plugin.xml as well?
That did it! Thank you