IntelliJ now allows you to create a run configuration for an SBT task. You create the Run Configuration by : choosing "Edit configurations" from the "Run" menu (or the toolbar popup) click the "+" button to add a configuration and select "SBT Task" as the type of configuration you want to make.
Consequently, how add SBT to IntelliJ?
- If no project is currently opened in IntelliJ IDEA, click Open or Import on the welcome screen. Otherwise, select File | Open from the main menu.
- In the dialog that opens, select a file that contains your sbt project description build. sbt.
- In the dialog that opens, click Select as Project.
Similarly, what is SBT Assembly? sbt-assembly creates a fat JAR - a single JAR file containing all class files from your code and libraries. By evolution, it also contains ways of resolving conflicts when multiple JARs provide the same file path (like config or README file).
Similarly, it is asked, how do I run a SBT file?
Running the project
- cd into hello-world .
- Run sbt . This will open up the sbt console.
- Type ~run . The ~ is optional and causes sbt to re-run on every file save, allowing for a fast edit/run/debug cycle. sbt will also generate a target directory which you can ignore.
How can I change SBT version?
properties file.
- Create or open your sbt project.
- In the Project tool window, in the source root directory, locate the build. properties file and open it in the editor.
- In the editor explicitly specify the version of sbt that you want to use in the project. sbt.version=xxx. Copied!
- Reimport your project. ( Click the.
