Creating an Idea MPS Language plugin with Gradle Follow
We've got an MPS language we'd like to package into an Idea plugin for end users.
I've read the excellent docs (https://www.jetbrains.com/help/mps/building-intellij-idea-language-plugins.html) on using Ant to do this. This is viable. But if one preferred to use gradle instead, is there any guidance or samples available?
Please sign in to leave a comment.
Hi Paul,
The Ant build script that MPS generates contains quite a lot of IDEA-specific information. It writes module descriptors and plugin.xml files for example. It would take too much unnecessary effort to replicate this all in Gradle so it's easier to let MPS generate the Ant script and call it from Gradle, either through the built-in Ant support or JavaExec.
There is also a project called mpsbuild that does attempt to replicate the IDEA-specific knowledge in a Kotlin library so that it could be used from a Gradle plugin, but it's in early stages and not universally usable. I wrote a short article about it.