[Gephi-plugins] Gephi Plugins easier to develop

Mathieu Bastian mathieu.bastian at gephi.org
Tue Jan 10 07:52:45 CET 2012


Hi all,

We are making progress in simplifying even more Gephi plugin development
these days. We are making updates to the 'gephi-plugins' repository to
address these issues:

1. Long building time
2. Building with ant only (no Netbeans)
3. Package NBMs into ZIP distributions

1. You are no longer obliged to compile and build Gephi plugins within the
main Gephi source code. If you go to the repository (
https://github.com/gephi/gephi-plugins) and browse the 'platform/gephi'
you'll see that this is similar to what is installed in your computer
(C:\Program Files\Gephi....) and contains all necessary JARs Gephi needs.
So when you code plug-ins, you can test them within a complete Gephi in
seconds.

Try it out bu downloading the repository and 'ant run' or 'Run' in
Netbeans.

2. You are no longer obliged to have Netbeans installed on your computer to
develop and build plug-ins. Because the Netbeans Platform is included in
the repository (in the harness folder) it doesn't need Netbeans anymore.
Development in Netbeans remains the same and everything works as before.

3. When you code plugins you are encouraged to split features in several
modules like Gephi does. Therefore, you'll have several modules in your
project, each of them with a different name and dependencies. When you want
to release your plug-in you need to create a NBM file for each of your
module and create yourself a ZIP file of all NBMs to be able to upload on
Gephi.org.

This process is now automated. Right click on your module > Package As >
NBMs to create all NBMs plus a zip file containing all NBMs. The zip file
is located at /build/plugin-release.zip. You can also run 'ant nbms' from
the command line to do the same thing. You can then upload the file on the
website.

***So how to create a plugin this way?****

- Fork and clone the gephi-plugins repository (
https://github.com/gephi/gephi-plugins):
$ git clone git at github.com:username/gephi-plugins.git

- Open Netbeans and open the project. Netbeans recognizes the project as
module suite.

- Right click on the project and Run to test if Gephi runs fine.

- Add new modules to your project...

***So how to convert my existing project?****

- Fork and clone the gephi-plugins repository (
https://github.com/gephi/gephi-plugins):
$ git clone git at github.com:username/gephi-plugins.git

- Copy-paste all your module folders into the new repository.

- Go to Netbeans, right click on 'Modules' > 'Add Existing' and add all
your folders.

- Right click on the project and Run to test if Gephi runs fine.

Please let me know if you have any trouble/questions. We will continue to
make improvements on the development process soon.

Mathieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gephi.org/pipermail/gephi-plugins/attachments/20120109/9a0f9e66/attachment.html>


More information about the gephi-plugins mailing list