How to fully clean, re-resolve and rebuild a Scala sbt-managed project in IDEA?

前端 未结 10 814
一向
一向 2021-02-02 06:18

TL;DR: How can I fully reconcile all dependencies in IntelliJ when SBT file changes

I have a SBT project setup in IntelliJ. For the most part if works l

10条回答
  •  Happy的楠姐
    2021-02-02 06:54

    Has happened to me before, and yes, is a PITA.

    What I usually do is to manually remove the dependencies from the project, all of them, then let sbt re-import what is actually needed. Don't do it on the UI though, since even having multiple selection, will ask for confirmation for EVERY dependency! (you will be clicking "Yes, I'm sure" for an hour), instead, go and delete directly from the .iml project file on your .idea/modules directory.

提交回复
热议问题