packaging third party libraries
Hello,
I've been quite successful in running a custom developed plugin from the Idea IDE and after some some trial and error I also managed to package it as a plugin for my users.
I also manged to add some third party libraries to support @NotNull annotations and some other features and run the plugin from the deve environment.
So far I did not managed to package any third party libraries in my custom code and I can not seem to find any ant script or documentation to accomplish this.
Do you have any guide or samples that I can follow?
Cheers,
Adrian
-
Hi Adrian,
To include third party libraries you need to package your plugin in a folder before zipping it up into a gplugin. Any jar files that are in the root of that folder will automatically be included on the classpath. The folder name must match the name of your plugin class.
Are you using our plugin development kit from https://www.geneious.com/plugin-development ? The example build.xml files in there have a commented out section for folder type plugins.
Alternatively there are a number examples on https://github.com/biomatters. The biocode-lims is an example of a plugin that includes libraries using Apache Ant and Apache Ivy. If you're looking for a more modern build system then the geneious-eupathdb repository is built using Gradle.
0
Please sign in to leave a comment.
Comments
1 comment