'External dependencies gets removed after sbt plugins update

I have my spark project setup with SBT and, whenever I need to add dependencies, I add them in build.sbt and run the command sbt plugins update.

Now there are some dependencies that I want to add as jar files so I added them in project structure > modules -> Dependencies -> + as jars. After this the dependencies are added and I can import them just fine.

But then, whenever I run sbt plugins update, these new dependencies get removed.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source