Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to execute SBT plugin's tasks from within IntelliJ IDEA CE?

I use IntelliJ IDEA 13.1 Community Edition with the Scala plugin 0.32.593.

enter image description here

What's the recommended way to execute a SBT plugin's tasks, say dependencyUpdates from sbt-updates?

like image 688
Jacek Laskowski Avatar asked Mar 01 '14 23:03

Jacek Laskowski


People also ask

Where is Plugins sbt in IntelliJ?

IntelliJ plugin can be found here http://confluence.jetbrains.com/display/SCA/Scala+Plugin+for+IntelliJ+IDEA or can be installed directoly from within the IDE using Settings -> Plugins dialog. Afterwards one can just do File -> New Project -> Scala -> SBT based. IntelliJ will generate basic build.

How do I get sbt tab in IntelliJ?

Click sbt on the right sidebar to open the tool window. The tool window displays the sbt linked projects, their tasks, dependencies, and all changes made to the underlying build.


1 Answers

In version 15 of IntelliJ IDEA, using Scala Plugin version 2.0, you can run SBT tasks by adding a run configuration.

First add a new run configuration by clicking on Run -> Edit Configurations. Then click the + button to add a new configuration and choose SBT Task form the list

enter image description here

Now provide the list of tasks separated by space in Tasks input box:

enter image description here

like image 116
Nader Ghanbari Avatar answered Sep 22 '22 01:09

Nader Ghanbari