Importing SBT project from Version control

Answered

 Hi,

When importing an existing SBT project from Subversion, Intellij will detect the build.sbt file at some point during import and display a small popup in the corner, with the option to use SBT support. If you miss this popup or close it by accident, the project is not imported as SBT project.

Looking through the documentation, I found no way to do this "Use SBT" step afterwards. The only way seems to be to delete the .idea folder and reimport the now local project as an SBT project.

Is there an easier way to add SBT support to an existing IDEA project?

(Background: we use a system, which lets students check out a project stub for an exercise, including an sbt file, via SVN, and lets them submit their solutions. We regularly get requests for why the project won't build locally, and usually it's missing the sbt build file and has no folders marked as source folders after using "new > project from version control")

Regards
Alexander Gehrke

0
1 comment

There is a related request at https://youtrack.jetbrains.com/issue/IDEA-187099.

I don't see an easy solution for now, the only way is to import the project from the SBT build file.

0

Please sign in to leave a comment.