How to run sbt-assembly tasks from within IntelliJ IDEA?

MaatDeamon picture MaatDeamon · Aug 4, 2014 · Viewed 20.1k times · Source

Is it possible to run sbt-assembly from within IntelliJ IDEA?

Also I read in the doc that one could add task within the SBT Tool window. But what I see is that it only helps you view your project not task? I cannot add any tasks there. How does the Tool window work exactly?

I have the last version of IntelliJ IDEA.

Answer

Jacek Laskowski picture Jacek Laskowski · Aug 4, 2014

You can find the SBT plugin useful for your needs. With it, you can execute any tasks or command available in your build so sbt-assembly ones should work, too.

The plugin gives you SBT Console in which you start a sbt shell as if you were running it on the command line. The plugin gives you a more IDEA-like environment to work with the interactive console.

enter image description here