How to perform SBT plugin tasks from IntelliJ IDEA CE?

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

enter image description here

What is the recommended way to accomplish the tasks of the SBT plugin, say dependencyUpdates from sbt-updates ?

+7
scala intellij-idea sbt
source share
4 answers

NOTE IntelliJ IDEA and Scala and sbt plugins have improved as you can read How to run sbt build tasks from IntelliJ IDEA? instead of this.

I worked with the Embedded Terminal plugin that comes with the IDEA version.

Alt + F12 (or Tools > Open Terminal ) to open a terminal window, and then sbt dependencyUpdates inside.

enter image description here

This requires a local SBT installation.

+8
source share

In IntelliJ IDEA version 15 using Scala plug-in version 2.0 you can run SBT tasks by adding a launch configuration.

First add a new launch configuration by clicking Run -> Edit Configurations . Then click the + button to add a new configuration and select SBT Task from the list

enter image description here

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

enter image description here

+10
source share

If a recent change has not occurred (in 13.1), the SBT plugin does not support sbt tasks.

See comments here http://blog.jetbrains.com/scala/2013/11/18/built-in-sbt-support-in-intellij-idea-13/

+2
source share

You will need to run these two commands to start SBT in the terminal:

 SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M" java $SBT_OPTS -jar `<SBT inatall>`/bin/sbt-launch.jar " $@ " 
-3
source share

All Articles