how to make run command include the provided dependencies when using sbt

来源:互联网 发布:js div click事件 编辑:程序博客网 时间:2024/06/05 12:12
The easiest way to add provided dependencies to debug a task with IntelliJ is to:


Right-click src/main/scala
Select Mark Directory as... > Test Sources Root
This tells IntelliJ to treat src/main/scala as a test folder for which it adds all the dependencies tagged as provided to any run config (debug/run).


Every time you do a SBT refresh, redo these step as IntelliJ will reset the folder to a regular source folder.




From stackover: https://stackoverflow.com/questions/36437814/how-to-work-efficiently-with-sbt-spark-and-provided-dependencies
原创粉丝点击