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.
0
9 comments
Avatar
Permanently deleted user

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:

0
Avatar
Permanently deleted user

Jakub Chrzanowski Thank you for your reply. 


But I'm still getting the same error on a different machine
0

How do you build and distribute this plugin for tests?

0
Avatar
Permanently deleted user

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

0

Can you try with the gradle buildPlugin task?
IT'll create a zip artifact in build/distribution/ directory

0
Avatar
Permanently deleted user

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

0

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?

<depends>com.intellij.java</depends>

 

1
Avatar
Permanently deleted user

That did it! Thank you

0

Please sign in to leave a comment.