How to build a plugin distribution with SBT

Answered

Hi i'm trying to build a plugin distribution zip file which can be installed in IntelliJ Idea with all required plugin dependencies. The repository is at https://github.com/gayanper/intellij-lsp. I'm having a hard time on finding the correct task to run to create the zip distribution as it is done in the intellij-gradle plugin for intellij plugins. Can someone point me in the right direction where on how i can implement this ?

0
3 comments

Hi.

We use SBT to develop and publish Scala plugin for IntelliJ. You can find it here https://github.com/JetBrains/intellij-scala
Namely, we use sbt-idea-plugin(https://github.com/JetBrains/intellij-scala) which provides features such as downloading and attaching IDEA distribution, packaging the artifact and uploading it to the plugin repo.
Documentation for it, however, is currently being worked on, so it would be useful to take a look at Scala plugin sbt build for a reference.
In case you have any questions regarding development, feel free to ask on our gitter channel here: https://gitter.im/JetBrains/intellij-scala

0

In the latest sbt plugin version(2.1.2) there is a task packagePluginZip that does exactly this: packages plugin distribution zip file with all the libraries. There is also a packagePlugin command that produces non-zipped artifact.

1

Thanks this is what i was looking for.

0

Please sign in to leave a comment.