How to include files to be installed alongside the jar plugin ?

Answered

Hi, 
I am developing a language plugin and I want to bundle in it a TextMate Bundle that will be used for syntax highlighting, quite the same way the TexteMate bundle probably does.

I found in the intellij repository (https://github.com/JetBrains/intellij-community/tree/master/plugins/textmate/lib) that the TextMate plugin has a lib folder that contains the textemate bundles that are ultimately installed next to the textemate.jar, but I have no clue how this folder is actually packaged with the plugin.

Is it possible to declare somewhere (maybe in the plugin.xml or in the gradle.build) that I want to package a specific folder with the plugin, so that this folder will also be installed on disc whenever someone installs the plugin itself ?

0
1 comment

You can modify your Gradle build script to include any resources into the final plugin distribution.
https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin-faq.html#how-to-add-a-custom-file-inside-plugin-distribution
Or simply put them into your resources folder of your plugin.
https://plugins.jetbrains.com/docs/intellij/plugin-content.html

1

Please sign in to leave a comment.