Search code examples
scalagithubintellij-ideasbtintellij-plugin

How to make Intellij follow sbt GitHub dependencies?


I managed how to add github dependencies to my sbt project following the instructions in this link. However, Intellij could not find the github dependencies.


Solution

  • After om-nom-nom sugestion, only Scala plugin is needed:

    1. Installing the Scala plugin from a fresh idea install
    2. Import project from external model -> SBT project
    3. ? use auto import ?
    4. Register "unregistered Vcs root"
    5. Set module SDK with your JDK folder and adopt it for the project
    6. Write a main file and press ctrl+shift+F10

    The step 4 is important because you won't need to keep the working copies of the sub-projects anymore. Idea creates them inside ~/.IdeaIC13 folder.

    This link talks about multi-root Projects and synchronous branch control.

    ps. the SBT plugin somehow was disabled and ideia became cofused about a subproject with a (nested) subsubproject.