![]() Then, in the editor explicitly specify the version of sbt that you want to use in the project. In the Project tool window, in the source root directory, locate the build.properties file and open it in the editor. You can override the sbt version in your project's build.properties file.Ĭreate or open your sbt project. Often you share your project across a team and need to use a specific version of sbt. Ensure sbt and Scala versions compatibility ![]() If you need to adjust importing options when you open the project, refer to the sbt settings. IntelliJ IDEA opens and syncs the sbt project in the IDE. Click OK, and - in the next dialog - click Select as Project. Then, in the dialog, select a file that contains your sbt project description build.sbt. If no project is currently opened in IntelliJ IDEA, click Open on the welcome screen (otherwise, select File | Open from the main menu). (The sbt and Scala versions are fetched automatically). To create a new project, launch the New Project wizard and follow the steps suggested in the wizard such as selecting Scala and sbt specifying the project's location, JDK along with sbt and Scala versions. IntelliJ IDEA also lets you use other build tools such as Gradle or Maven to build your Scala project. ![]() Note that any sbt task can be attached to be run before a run configuration. To access this option, select File | Settings | Build, Execution, Deployment | Build Tools.įor manual synchronization, use the corresponding action on the sbt projects tool window toolbar. You can configure the Reload project after changes in the build scripts option to synchronize the changes made to build.sbt automatically. Every time you change the build.sbt file, you need to synchronize your changes with the project model in IntelliJ IDEA. In build.sbt you can specify compiler options, information about your subprojects, and also define your tasks and settings. When you've imported or created your sbt project, you can edit its build.sbt file directly in the editor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |